CN103517375B - A kind of to multiple mobile equipment identification, the method for communication and device - Google Patents

A kind of to multiple mobile equipment identification, the method for communication and device Download PDF

Info

Publication number
CN103517375B
CN103517375B CN201210214957.7A CN201210214957A CN103517375B CN 103517375 B CN103517375 B CN 103517375B CN 201210214957 A CN201210214957 A CN 201210214957A CN 103517375 B CN103517375 B CN 103517375B
Authority
CN
China
Prior art keywords
mobile equipment
port
packet
unit
equipment
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
CN201210214957.7A
Other languages
Chinese (zh)
Other versions
CN103517375A (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 CN201210214957.7A priority Critical patent/CN103517375B/en
Publication of CN103517375A publication Critical patent/CN103517375A/en
Application granted granted Critical
Publication of CN103517375B publication Critical patent/CN103517375B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention provides a kind of and multiple mobile equipment identification, the method for communication and device is moved device port by access side and traveled through, and the method for all PORT COM of dynamic scan comprehensively have detected all of access device.The present invention's is a kind of to multiple mobile equipment identification, the method for communication and device, it is achieved that PC end is simultaneously to the identification of multiple mobile terminal devices and communication.

Description

A kind of to multiple mobile equipment identification, the method for communication and device
Technical field
The present invention relates to the communications field, particularly to a kind of to multiple mobile equipment identification, the method for communication and device.
Background technology
Along with mobile communication is maked rapid progress, mobile equipment emerges in an endless stream, from original functional mobile phone, smart mobile phone till now, then arrive various panel computers, also has the data card of various standards, people are in order to manage mobile equipment equipment easily, and including data syn-chronization, data backup, PC lateral terminal management software arises at the historic moment, but these PC side management softwares are both for specifically moving equipment, it is primarily present the defects such as poor universality, poor user experience, maintenance cost height.Therefore, a kind of general PC side software is had the demand that comparison is urgent by market.
Existing PC side management software is both for specific equipment and designs, and all determines that with the parameter such as the communication modes of equipment, communications protocol, therefore it may only be necessary to whether port corresponding to detection ready, i.e. and deployable communication.But wanting the mobile equipment simultaneously supporting number of different types, the major technical difficulty existed is exactly the identification to equipment, because equipment is different, corresponding communication modes is different, communications protocol is different, business module is different, the software interface that presents is different etc..Therefore, realizing the problem that the generalization of various mobile device management primarily solves is exactly the identification to mobile equipment, by equipment identification, determine the model of current connection devices, just can determine that the parameter that communication modes that this equipment is corresponding, communications protocol, functional module etc. are crucial, thus for this equipment choice the related management function matched.
Summary of the invention
The main technical problem to be solved in the present invention is to provide a kind of to multiple mobile equipment identification, the method for communication and device, it is to avoid the problem that multiple mobile equipment cannot be identified at PC end simultaneously.
For solving above-mentioned technical problem, the technical solution used in the present invention is as follows:
A kind of to multiple mobile equipment knowledge method for distinguishing, comprise the following steps:
Obtain at least one system port information accessing mobile equipment, and described system port information is grouped according to type;
Type according to each packet each port wherein sends corresponding query statement, according to the feedback message returned, obtains the unit type that described port is corresponding.
Further, described packet includes: DIAG packet, AT packet and ADB packet.
Further, being grouped into described DIAG packet when described, in this packet, each port sends general DIAG instruction, receives feedback message, and feedback message is resolved, obtain the unit type that described port is corresponding;Being grouped into described AT packet when described, in this packet, each port sends general AT instruction, receives feedback message, and feedback message is resolved, obtain the unit type that described port is corresponding.
Further, it is grouped into described ADB packet when described, then in Terminal, carries out ADBdevices order, return the unit type that described mobile equipment is corresponding.
Further, sending corresponding query statement simultaneously according to the type of each packet each port wherein, intervalometer is set, receives the feedback message of stipulated time return, and in described packet, delete the port being transmitted across described query statement.
A kind of method to multiple mobile device communication, it is characterised in that include above-mentioned multiple mobile equipment being known method for distinguishing, further comprising the steps of:
Identified described mobile unit type is displayed;
Select the described mobile unit type wherein needing to communicate;
According to described mobile unit type, the configuration file that coupling is corresponding, set up communication port.
Further, a kind of above-mentioned method to multiple mobile device communication is further comprising the steps of:
When removing described mobile equipment, obtain the list of devices of the mobile equipment being currently attached;
Obtain the list of devices of current identified described mobile equipment;
Whether the mobile equipment being attached described in judgement is present in the list of devices of current identified described mobile equipment;
If being absent from, then close this communication channel.
Further, if described in the mobile equipment that removes when being mobile equipment in described ADB packet, obtain the name list of the mobile equipment being currently attached;Perform ADBdevices order, obtain the list of devices of current identified described mobile equipment;Whether the title of the mobile equipment being attached described in judgement is present in the list of devices of current identified described mobile equipment;If being absent from, then close this communication channel.
A kind of device to multiple mobile equipment identification, including: information collection unit and information query unit;
Described information collection unit is for obtaining at least one system port information accessing mobile equipment, and described system port information is grouped according to type;
Described information query unit sends corresponding query statement for the type each port wherein according to each packet, according to the feedback message returned, obtains the unit type that described port is corresponding.
Further, described packet includes: DIAG packet, AT packet and ADB packet.
Further, being grouped into described DIAG packet when described, described information query unit sends general DIAG instruction to each port in this packet, and is resolved by the feedback message received, and obtains the unit type that described port is corresponding;Being grouped into described AT packet when described, described information query unit sends general AT instruction to each port in this packet, and is resolved by the feedback message received, and obtains the unit type that described port is corresponding.
Further, being grouped into described ADB packet when described, described information query unit carries out ADBdevices order, returns the unit type that described mobile equipment is corresponding.
Further, it is characterised in that the described device to multiple mobile equipment identification also includes timing unit;Described timing unit is for setting the feedback time of described query statement;Described information query unit receives the feedback message of stipulated time return, and deletes the port being transmitted across described query statement in described packet.
A kind of device to multiple mobile device communication, including the above-mentioned device to multiple mobile equipment identification, also includes: display unit, selection unit and equipment matching unit;
Described display unit is for displaying identified described mobile unit type;
Described selection unit is for selecting the described mobile unit type wherein needing to communicate;
Described equipment matching unit is for according to described mobile unit type, the configuration file that coupling is corresponding, setting up communication port.
Further, the described device to multiple mobile device communication also includes: equipment judging unit;
When removing described mobile equipment, described information collection unit obtains the list of devices of the mobile equipment being currently attached and the list of devices of current identified described mobile equipment;
Described equipment judging unit is for whether the mobile equipment being attached described in judging is present in the list of devices of current identified described mobile equipment;If being absent from, then close this communication channel.
Further, if described in the mobile equipment that removes when being mobile equipment in described ADB packet, described information collection unit is for obtaining the name list of the mobile equipment being currently attached;And perform ADBdevices order, obtain the list of devices of current identified described mobile equipment;
Whether the title of the described equipment judging unit mobile equipment for being attached described in judging is present in the list of devices of current identified described mobile equipment;If being absent from, then close this communication channel.
The invention has the beneficial effects as follows: provide a kind of to multiple mobile equipment identification, the method for communication and device, move device port by access side to travel through, the method of all PORT COM of dynamic scan, comprehensively have detected all of access device, it is achieved that PC end is simultaneously to the identification of multiple mobile terminal devices and communication.
Accompanying drawing explanation
Fig. 1 is a kind of method flow diagram to multiple mobile equipment identification in one embodiment of the invention;
Fig. 2 is a kind of method part schematic flow sheet to multiple mobile device communication in one embodiment of the invention;
Fig. 3 is a kind of method part schematic flow sheet to multiple mobile device communication in further embodiment of this invention;
Fig. 4 is a kind of apparatus structure schematic diagram to multiple mobile equipment identification in one embodiment of the invention;
Fig. 5 is a kind of apparatus structure schematic diagram to multiple mobile device communication in one embodiment of the invention.
Detailed description of the invention
For making technical scheme and advantage clearly, the present invention is described in further detail in conjunction with accompanying drawing below by detailed description of the invention.
Overall being contemplated that of the present invention: move in difference and have diversified PORT COM on equipment, as: the port of the various ways such as AT port, DIAG port, ADB port, and in order to make this various ports can be identified and then communication at its incoming end;Identical port, by various device talk ports are carried out traversal queries, is grouped by the present invention, it is then determined that the unit type of each equipment, thus further determining that the corresponding key parameter such as communication modes, communications protocol, sets up communication linkage.
Below in conjunction with accompanying drawing, concrete implementation process is described in detail:
Refer to Fig. 1, in the present embodiment, the present invention provides a kind of and multiple mobile equipment is known method for distinguishing, and its concrete process is:
First, before mobile equipment accesses, first need in PC end Accreditation System message, the equipment PID(Productidentifier product identification mark supported according to this software), the identity of VID(Vendoridentifier manufacturer) information registers USBNotification message to MacOS, once the access of USB device be detected or transfering to message, system can be given notice.It should be noted that the PC running environment in the present invention can be several operation systems, for relatively simple explanation inventive concept, in the present embodiment, the MacOS operating system of Apple is selected to be explained.
Step 1: obtain at least one system port information accessing mobile equipment, and described system port information is grouped according to type.
After detecting that mobile equipment accesses, system can be loaded in list of devices access device, can obtain current all devices, wherein in/dev catalogue, it is possible to has multiple equipment and accesses, will there are multiple DIAG port, AT port etc..Owing to needing the synchronization process to multiple access device, therefore these multiple ports are grouped according to default rule, preferably, can be grouped according to the type of each port, being saved in different port packets, as multiple DIAG ports are divided into one group, multiple AT ports are divided into one group.
In step 1, it is also possible to include operating process in detail below:
Step 101: obtain the system port information accessing mobile equipment.
Detecting that equipment inserts while message in system, driving can map out the PORT COM that this equipment is corresponding, and this PORT COM can find in system equipment file directory/dev, namely can get, from/dev, the port device loaded in current system.The port that such as ZTE mobile phone will map out after loading has :/dev/cu.ZTEHSUSBDIAGPort_ ,/dev/cu.ZTEHSUSBATPort_;If after having multiple equipment to load simultaneously simultaneously, then there will be a random digit after the port of each same type, such as :/dev/cu.ZTEHSUSBDIAGPort_3 ,/dev/cu.ZTEHSUSBATPort_4.
Step 102: system port information is grouped.
Although when multiple mobile equipment access, containing random number in port title, being uncertain.But the prefix title of port determines that, such as/dev/cu.ZTEHSUSBDIAGPort, then the DIAG port of this class can be divided at one group, because DIAG agreement can be adopted to carry out communication for these ports.In like manner, by dividing at one group with the/dev/cu.ZTEHSUSBATPort port being prefix, communication is carried out by AT agreement.
In the present embodiment, multiple packets particularly may be divided into: AT packet, DIAG packet and ADB packet, wherein, deposits intelligent machine port information in ADB packet.And preferably, it is possible to the packet of this port being preserved in a list, such as PortsArray list, wherein each packet ports information then preserves in the sublist under PortsArray list;Port information such as AT packet is saved in AtPortsArray list, and DIAG packet ports information is saved in DiagPortsArray list, and ADB packet ports information is saved in AdbPortArray list.
In the present embodiment, if incoming end equipment is intelligent machine, bridge can be debugged by the Google ADB(AndriodDebugBridge Android provided) instrument carries out equipment Inspection, in order to the serial ports with function machine is uniformly processed flow process, an AdbPortArray list can be set up, the inside only preserves character string: ADB, can individual processing in parsing below.The multiple smart mobile phones of instant insertion, ADB instrument remains able to detection.
Step 2: send corresponding query statement according to the type of each packet each port wherein, obtain the unit type that described port is corresponding.
Packet type according to each packet, in packet, each port sends the query statement of corresponding acquisition unit type respectively, if it is possible to normally returns, namely obtains its unit type, model corresponding for this port is recorded.Otherwise, then the inquiry of lower Single port is carried out, until all of interface querying completes.
Refer to Fig. 2, in step 2, specifically include following step:
Step 201: get one of which list being grouped from port list, in the present embodiment, owing to each port grouping information is all saved in PortArray list, so getting a packet being grouped from PortArray, to step 202.
Step 202: judge whether to have in this packet effective device port.In DiagPortsArray, such as all save the DIAG port of correspondence, check whether to save effective DIAG port device, without effective port, then returning step 101, if there is effective port, then arriving step 203.
Step 203: take one of them effective port, to step 204.
Step 204: open this port, open port normal after can return the filec descriptor of an integer.If filec descriptor is-1, then show that this port opens exception, or unavailable, to step 207;Otherwise arrive step 206.
Step 207: delete this port, and return step 202, takes next port from this packet and opens, if not had effective port in this packet, then inquires about the packet of next port.
Step 206: send the query statement of corresponding acquisition unit type to the port opened.For the difference of the port type opened, send corresponding instruction;To step 208.
Wherein, sending general DIAG instruction to DIAG port, send general AT instruction to AT port, meanwhile, in order to result is more accurate, preferably, it is also possible to arrange intervalometer, testing result returns time-out time.
Step 208: judge whether feedback result normally returns.If normally returning, forward step 209 to;If returning abnormal, then forward step 207 to.
Because some equipment may map out DIAG mouth and AT mouth simultaneously, but the port of real communication is one of them, such as the functional mobile phone of a lot of WCDMA standards of my department all carrys out communication by DIAG mouth, but AT port can be mapped out simultaneously, but send instruction to DIAG mouth could normally return, then can return mistake to the transmission instruction of AT mouth or time-out does not return, return abnormal port for this kind of, then it is assumed that be disabled.
Step 209, when normally returning result or time-out at port, closes this port, forwards step 210 to.
The now of short duration purpose opening port is used only to the model of acquisition equipment, supports if this equipment is this incoming end, then in the list of devices being shown in, after waiting user to select the equipment of correspondence, then row is opened corresponding port and carried out communication.If incoming end does not support this equipment, then this port is it is not necessary that remain on.
Step 210, installs specified protocol to the normal result returned and resolves, forward step 211 to.
The normal result returned is installed specified protocol resolve, the model name of corresponding device can be obtained, this equipment is added in the optional list of devices of user and mates further.
Step 211, the corresponding relation of record port and unit type title, forward step 212 to.
For can the port of normal returning equipment model, then think identify and PORT COM can be carried out, return result by resolving and obtain the concrete equipment corresponding to this port, namely this equipment be the result that return instruction resolves, now need port and equipment corresponding informance record in a list, in the present embodiment, store it in DevicePortArray list, until all of the port has all accessed in PortArray.Simultaneously for invalid port, delete in ergodic process, therefore, wait having traveled through that what preserve in rear PortArray is all effective port of discernible mobile equipment.
In DevicePortArray list, each element is the dictionary of a NSDictionary type, and Key value is device name, and Value is corresponding port address.Such as right/dev/cu.ZTEHSUSBDIAGPort_3 port sends instruction, the result returned resolves to: P727P, then show that the live end port address that P727P equipment is corresponding is /dev/cu.ZTEHSUSBDIAGPort_3, therefore Key:P727P, Value:/dev/cu.ZTEHSUSBDIAGPort_3 are saved in a dictionary and add in DevicePortArray.
For the smart machine got by ADB mode, what communication modes adopted is Socket socket mode, and therefore corresponding dictionary should be: Key:P727P, Value:127.0.0.1:14913;127.0.0.1 represent the Socket server address connected, 14913 is the Socket Service-Port connected, and this port is to appoint the port carrying out communication in advance with server end.
Step 212: judge whether that all of the port has all accessed, if all having accessed, then terminates, and otherwise enters step 207.
In step 203, if the port got in ADB is grouped, then step 213 is entered.
Port in step 213:ADB packet, enters step 214.
Step 214: adopt ADB mode to detect, enter step 215.
For the port in AdbPortArray, it can individually adopt ADB mode to detect, so port need not be opened.Can directly carry out in Terminal: ADBdevices order.
The detailed process performing ADBdevices order is: call Terminal, performs ADBdevices order, if normally returning, then containing device name and equipment state in feedback message;If there is no relevant device, then do not return any list of devices.
Step 215: judge whether feedback message normally returns, if normally, enters step 210, otherwise forwards step 201 to.
If feedback message normally returns, namely can return to the Smartphone device title accessed, otherwise without returning result.
Refer to Fig. 2 in the present embodiment, also provide for a kind of method to multiple mobile device communication, it is mainly used for after above-mentioned recognition methods and carries out communication link with incoming end, naturally, it should include in the present embodiment described multiple mobile equipment being known method for distinguishing, in addition, after having identified mobile equipment, also needing to establish communication passage, concrete process is as in figure 2 it is shown, include:
Step 3: identified described mobile unit type is displayed;
Key according to element each in DevicePortArray can obtain the list of devices being currently accessed, and is illustrated in equipment linkage interface, selects for user.
Step 4: select the described mobile unit type wherein needing to communicate;
In this process, user can pass through the mobile equipment that mobile equipment choice interface selects to need to be attached, this selection course can after all of the port have all accessed in PortArray, can also after certain Single port have accessed in PortArray, because after any of which port is accessed, if confirming as discernible device port, then the device name corresponding to this port will be added at user option list of devices by system, selects for user.
Step 5: according to described mobile unit type, the configuration file that coupling is corresponding, set up communication port.
According to the device name that user selects, the effective communication port of corresponding device is got from DevicePortArray, if the port of similar/dev/cu.ZTEHSUSBDIAGPort_3 form, then adopt the mode of serial communication, set up communication port, if the port of 127.0.0.1:14913 form, then adopt the mode of socket communication, set up communication port.Simultaneously need to from the configuration file of registration, such as, in the present embodiment, will from information such as the functional modules getting the communications protocol of corresponding device, support/System/Library/MobileList/Device.plist configuration file, starting the agreement according to the initialization flow process of PC side software and equipment are corresponding to initialize, carrying out all processes of communication thus completing to recognize from equipment with a concrete equipment.
In the present embodiment, a kind of method to multiple mobile device communication also includes following operating procedure:
Step 6: when removing described mobile equipment, obtains the list of devices of the mobile equipment being currently attached;Obtain the list of devices of current identified mobile equipment simultaneously;
Step 7: whether the mobile equipment being attached described in judgement is present in the list of devices of current identified mobile equipment;If being absent from, then close this communication channel.
Refer to, in step 6, specifically also include following processing procedure:
Step 601: the system reporting equipment of receiving removes message.The USB notice message of forward direction system registry, not only notice when equipment inserts, under other abnormalities such as equipment removes, all can send notice.
Again the current identified port list of detection, if retrieval is grouped into ADB packet, then enters step 604;Otherwise enter step 602.
Step 602: obtain current identified port list, currently identified port list can get path from/dev.Enter step 603.
Step 604: and the port during ADB is grouped, it is Socket socket communication due to what adopt, so have to being mated by device name, it is possible to obtained by ADB command mode.Enter step 604.
Step 603: obtain connectivity port list.The port that currently attached mobile equipment adopts is obtained from DevicePortArray.Enter step 701.
Step 604: and the intelligent machine for having connected, current connection devices title should be got, then perform ADBdevices order, returning equipment title.Enter step 702.
Wherein, step 602 and 603,604 and 605 sequencing can exchange, have no effect on the realization of the present invention.
In step 7, following step is mainly included:
Step 701: judge whether currently attached port is present in identified port list, does not carry out any operation if existing, and otherwise, enters step 703.
If currently attached port still exists in identified port, then it is assumed that the equipment removed is the equipment not connected, do not do other and process.Otherwise, then it is assumed that the mobile link equipment that currently this port is corresponding is removed.
Step 702: judge whether currently attached equipment is present in identified list of devices, if existing, entering step 703, otherwise not carrying out any operation.
For intelligence hands, current connection devices title should be got, then ADBdevices order is performed, if the identified list of devices returned includes the device name of current connection, then think that the equipment transferred to is the equipment not connected, do not do other to process, otherwise, then it is assumed that current connection devices is removed.
Step 703: send, to system, the notice message that the mobile equipment of correspondence removes, remove this facility information from list of devices simultaneously.
Step 704: communication close passage, the resource of release busy.
System receives after equipment removes message, then close present communications passage.After equipment removes, it is necessary to the resource that release prior device takies, clear up port communication close passage.Further, the intervalometer of corresponding wait return instruction needs to remove.Intelligent machine equipment needs to close socket communication port, and cleaning takies resource accordingly.
In the present embodiment, after certain equipment removes, current list of devices is removed the equipment removed, is shown as off-state.Other device port does not suffer from this, and the address of port numbers will not change, and therefore, user can select other equipment to be attached, and remains able to match the PORT COM of correspondence, thus completing the switching that equipment connects.
In the present invention, also a kind of device to multiple mobile equipment identification, it specifically includes that information collection unit and information query unit;
Information collection unit accesses the system port information of mobile equipment for obtaining, and system port information is grouped;
After detecting that mobile equipment accesses, information collection unit can be loaded in list of devices access device, can obtain current all devices, wherein in/dev catalogue, it is possible to has multiple equipment and accesses, will there are multiple DIAG port, AT port etc..Owing to needing the synchronization process to multiple access device, therefore these multiple ports can be grouped by information collection unit according to default rule, preferably, can be grouped according to the type of each port, it is saved in different port packets, as multiple DIAG ports are divided into one group, multiple AT ports are divided into one group.
Information query unit sends corresponding query statement for the type each port wherein according to each packet, obtains the unit type that device port is corresponding.
Packet type according to each packet, information query unit can send the query statement of corresponding acquisition unit type respectively to each port in packet, if it is possible to normally returns, namely obtains its unit type, model corresponding for this port is recorded.Otherwise, then the inquiry of lower Single port is carried out, until all of interface querying completes.
Wherein, the feedback information obtained, after sending corresponding query statement according to the type of each packet each port wherein, is resolved, obtains the unit type that described port is corresponding by information query unit.
To the normal result returned, information query unit can be installed the respective protocol specified and be resolved, and can obtain the model name of corresponding device, is added into by this equipment in the optional list of devices of user and mates further.For can the port of normal returning equipment model, then it is assumed that being identify and can carry out PORT COM, return result by resolving and obtain the concrete equipment corresponding to this port, namely this equipment be the result that return instruction resolves,
In the present embodiment, if described mobile equipment is intelligent machine, described device then processes according to ADB treatment mechanism.
In the present embodiment, in order to result is more accurate, preferably, the device in the present embodiment can also include timing unit;Its feedback time being mainly used for setting query statement;Information query unit receives the feedback message of stipulated time return, and deletes, in port is grouped, the port being transmitted across query statement.
Because some equipment may map out DIAG port and AT port simultaneously, but the port of real communication is one of them, such as the functional mobile phone of a lot of WCDMA standards of my department all carrys out communication by DIAG mouth, but AT port can be mapped out simultaneously, but send instruction to DIAG mouth could normally return, then can return mistake to the transmission instruction of AT port or time-out does not return, return abnormal port for this kind of, then think disabled, it is possible to directly abandon.
In the present embodiment, the concrete function of information collection unit, information query unit and timing unit can refer to above-mentioned one to multiple mobile equipment knowledge method for distinguishing.
The present invention also provides for a kind of device to multiple mobile device communication, and it not only includes the above-mentioned device to multiple mobile equipment identification, also includes: display unit, selection unit and equipment matching unit;
Display unit is for displaying identified mobile unit type;
Select unit for selecting the mobile unit type wherein needing to communicate;
Equipment matching unit is for according to mobile unit type, the configuration file that coupling is corresponding, setting up communication port.
Further, the device of multiple mobile device communication is also included: equipment judging unit;When removing mobile equipment, information collection unit obtains the list of devices of the mobile equipment being currently attached and the list of devices of current identified mobile equipment;This equipment judging unit is for judging in the list of devices whether mobile equipment being attached is present in current identified mobile equipment;If being absent from, then close this communication channel.
If the mobile equipment removed is intelligent machine, information collection unit is for obtaining the name list of the mobile equipment being currently attached;And perform ADB order, obtain the list of devices of current identified mobile equipment;Equipment judging unit is for judging in the list of devices whether title of the mobile equipment being attached is present in current identified mobile equipment;If being absent from, then close this communication channel.
In the present embodiment, in a kind of device to multiple mobile device communication, the implementation of a functions of modules can refer to a kind of above-mentioned method to multiple mobile device communication.
Above content is in conjunction with specific embodiment further description made for the present invention, it is impossible to assert that specific embodiment of the invention is confined to these explanations.For general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, it is also possible to make some simple deduction or replace, protection scope of the present invention all should be considered as belonging to.

Claims (16)

1. one kind multiple mobile equipment is known method for distinguishing, it is characterised in that comprise the following steps:
Obtain at least one system port information accessing mobile equipment, and described system port information is grouped according to type;
Type according to each packet each port wherein sends corresponding query statement, according to the feedback message returned, obtains the unit type that described port is corresponding.
2. as claimed in claim 1 to multiple mobile equipment knowledge method for distinguishing, it is characterised in that described packet includes: DIAG packet, AT packet and ADB packet.
3. as claimed in claim 2 to multiple mobile equipment knowledge method for distinguishing, it is characterised in that to be grouped into described DIAG packet when described, in this packet, each port sends general DIAG instruction, receive feedback message, and feedback message is resolved, obtain the unit type that described port is corresponding;Being grouped into described AT packet when described, in this packet, each port sends general AT instruction, receives feedback message, and feedback message is resolved, obtain the unit type that described port is corresponding.
4. as claimed in claim 2 to multiple mobile equipment knowledge method for distinguishing, it is characterised in that to be grouped into described ADB packet when described, then in Terminal, carry out ADBdevices order, return the unit type that described mobile equipment is corresponding.
5. as according to any one of claim 1-4 to multiple mobile equipment know method for distinguishing, it is characterized in that, corresponding query statement is being sent simultaneously according to the type of each packet each port wherein, intervalometer is set, receive the feedback message of stipulated time return, and in described packet, delete the port being transmitted across described query statement.
6. the method to multiple mobile device communication, it is characterised in that include according to any one of claim 1-5 to multiple mobile equipment know method for distinguishing, further comprising the steps of:
Identified described mobile unit type is displayed;
Select the described mobile unit type wherein needing to communicate;
According to described mobile unit type, the configuration file that coupling is corresponding, set up communication port.
7. the method to multiple mobile device communication as claimed in claim 6, it is characterised in that further comprising the steps of:
When removing described mobile equipment, obtain the list of devices of the mobile equipment being currently attached;
Obtain the list of devices of current identified described mobile equipment;
Whether the mobile equipment being attached described in judgement is present in the list of devices of current identified described mobile equipment;
If being absent from, then close this communication channel.
8. the method to multiple mobile device communication as claimed in claim 7, it is characterised in that
If described in the mobile equipment that removes when being mobile equipment in ADB packet, obtain the name list of the mobile equipment being currently attached;
Perform ADBdevices order, obtain the list of devices of current identified described mobile equipment;
Whether the title of the mobile equipment being attached described in judgement is present in the list of devices of current identified described mobile equipment;
If being absent from, then close this communication channel.
9. the device to multiple mobile equipment identification, it is characterised in that including: information collection unit and information query unit;
Described information collection unit is for obtaining at least one system port information accessing mobile equipment, and described system port information is grouped according to type;
Described information query unit sends corresponding query statement for the type each port wherein according to each packet, according to the feedback message returned, obtains the unit type that described port is corresponding.
10. the device to multiple mobile equipment identification as claimed in claim 9, it is characterised in that described packet includes: DIAG packet, AT packet and ADB packet.
11. the device to multiple mobile equipment identification as claimed in claim 10, it is characterized in that, it is grouped into described DIAG packet when described, described information query unit sends general DIAG instruction to each port in this packet, and the feedback message received is resolved, obtain the unit type that described port is corresponding;Being grouped into described AT packet when described, described information query unit sends general AT instruction to each port in this packet, and is resolved by the feedback message received, and obtains the unit type that described port is corresponding.
12. the device to multiple mobile equipment identification as claimed in claim 10, it is characterised in that being grouped into described ADB packet when described, described information query unit carries out ADBdevices order, returns the unit type that described mobile equipment is corresponding.
13. the device to multiple mobile equipment identification as according to any one of claim 9-12, it is characterised in that the described device to multiple mobile equipment identification also includes timing unit;
Described timing unit is for setting the feedback time of described query statement;
Described information query unit receives the feedback message of stipulated time return, and deletes the port being transmitted across described query statement in described packet.
14. the device to multiple mobile device communication, it is characterised in that include the device to multiple mobile equipment identification according to any one of claim 9-13, also include: display unit, selection unit and equipment matching unit;
Described display unit is for displaying identified described mobile unit type;
Described selection unit is for selecting the described mobile unit type wherein needing to communicate;
Described equipment matching unit is for according to described mobile unit type, the configuration file that coupling is corresponding, setting up communication port.
15. the device to multiple mobile device communication as claimed in claim 14, it is characterised in that the described device to multiple mobile device communication also includes: equipment judging unit;
When removing described mobile equipment, described information collection unit obtains the list of devices of the mobile equipment being currently attached and the list of devices of current identified described mobile equipment;
Described equipment judging unit is for whether the mobile equipment being attached described in judging is present in the list of devices of current identified described mobile equipment;If being absent from, then close this communication channel.
16. the device to multiple mobile device communication as claimed in claim 15, it is characterised in that
If described in the mobile equipment that removes when being mobile equipment in ADB packet, described information collection unit is for obtaining the name list of the mobile equipment being currently attached;And perform ADBdevices order, obtain the list of devices of current identified described mobile equipment;
Whether the title of the described equipment judging unit mobile equipment for being attached described in judging is present in the list of devices of current identified described mobile equipment;If being absent from, then close this communication channel.
CN201210214957.7A 2012-06-27 2012-06-27 A kind of to multiple mobile equipment identification, the method for communication and device Active CN103517375B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210214957.7A CN103517375B (en) 2012-06-27 2012-06-27 A kind of to multiple mobile equipment identification, the method for communication and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210214957.7A CN103517375B (en) 2012-06-27 2012-06-27 A kind of to multiple mobile equipment identification, the method for communication and device

Publications (2)

Publication Number Publication Date
CN103517375A CN103517375A (en) 2014-01-15
CN103517375B true CN103517375B (en) 2016-06-29

Family

ID=49899192

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210214957.7A Active CN103517375B (en) 2012-06-27 2012-06-27 A kind of to multiple mobile equipment identification, the method for communication and device

Country Status (1)

Country Link
CN (1) CN103517375B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104125218B (en) * 2014-07-04 2019-01-18 广州猎豹网络科技有限公司 A kind of device identification method, device and system
CN104468260A (en) * 2014-11-13 2015-03-25 百度在线网络技术(北京)有限公司 Recognition method, device and system for mobile terminal device
CN105095119B (en) * 2015-07-03 2018-07-06 百度在线网络技术(北京)有限公司 A kind of method and device to communicate with ADB equipment
CN108271150B (en) * 2018-01-31 2021-09-14 深圳亿联工程科技有限公司 Method and system for supporting simultaneous flashing or data clearing of multiple mobile phones
CN110691072A (en) * 2019-09-11 2020-01-14 光通天下网络科技股份有限公司 Distributed port scanning method, device, medium and electronic equipment
CN111610983B (en) * 2020-05-04 2023-03-31 同智伟业软件股份有限公司 Multi-UKEY intelligent integrated identification method
CN115543172B (en) * 2022-11-23 2023-03-14 天津华宁电子有限公司 Integrated mine-road man-machine interface display control method and system for scraper conveyor

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1870597A (en) * 2005-05-24 2006-11-29 日本电气株式会社 Network equipment control system and access controlling means
CN102387170A (en) * 2010-08-31 2012-03-21 上海萌泰网络科技有限公司 Mobile data synchronizing method based on cloud computing
CN102487500A (en) * 2009-10-29 2012-06-06 中国电信股份有限公司 Subscriber identification module card, terminal management method and platform

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1870597A (en) * 2005-05-24 2006-11-29 日本电气株式会社 Network equipment control system and access controlling means
CN102487500A (en) * 2009-10-29 2012-06-06 中国电信股份有限公司 Subscriber identification module card, terminal management method and platform
CN102387170A (en) * 2010-08-31 2012-03-21 上海萌泰网络科技有限公司 Mobile data synchronizing method based on cloud computing

Also Published As

Publication number Publication date
CN103517375A (en) 2014-01-15

Similar Documents

Publication Publication Date Title
CN103517375B (en) A kind of to multiple mobile equipment identification, the method for communication and device
CN106028264B (en) Electronic equipment Bluetooth pairing methods and system
CN103731853B (en) Cloud recognition methods, equipment and the system of double-card mobile communication device
CN104767657A (en) Optical modem registration and testing system and method
CN103139157A (en) Network communication method based on socket, device and system
CN104412565B (en) For relating to the method that the socket of bearer independent protocol manages
CN105045699B (en) Mobile terminal and smart card uniformity test connect the method and system of race automatically
CN108347351A (en) Method, device and system for compatibility of dual Ethernet cards of equipment
CN107315702A (en) Computer-readable medium, computing device and the method managed for chip card
CN103731663B (en) The testing method of a kind of intelligent television and device
CN105517110B (en) A kind of method and device connecting bluetooth equipment
CN108712308B (en) Method and device for detecting network equipment in virtual network
CN103699464A (en) Communication terminal automatically testing method and device
CN105636016A (en) Method, apparatus, and system for network connection
CN103856411B (en) Switching system connected with UART interface of router
CN101355559A (en) Interface apparatus, main apparatus and control method for use in the interface apparatus
CN106302459A (en) Networking operational approach and device
CN106130827A (en) The detection method of network equipment accessibility and device
CN104899140A (en) Test method for mobile terminal assembly
CN105988882B (en) A kind of application software fault repairing method and terminal device
CN108647315A (en) Collecting method and system
CN104053132A (en) Method and apparatus for information number identification
CN109120731B (en) Universal communication method, system and device
WO2015152542A1 (en) After-service request method utilizing instruction manual search keyword
CN104427521A (en) Embedded type 3G (the third generation telecommunication) networking card working method and system

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