CN109164874A - A kind of information processing method and electronic equipment - Google Patents

A kind of information processing method and electronic equipment Download PDF

Info

Publication number
CN109164874A
CN109164874A CN201810877968.0A CN201810877968A CN109164874A CN 109164874 A CN109164874 A CN 109164874A CN 201810877968 A CN201810877968 A CN 201810877968A CN 109164874 A CN109164874 A CN 109164874A
Authority
CN
China
Prior art keywords
information
interface
functional module
sub
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.)
Granted
Application number
CN201810877968.0A
Other languages
Chinese (zh)
Other versions
CN109164874B (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201810877968.0A priority Critical patent/CN109164874B/en
Publication of CN109164874A publication Critical patent/CN109164874A/en
Application granted granted Critical
Publication of CN109164874B publication Critical patent/CN109164874B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1632External expansion units, e.g. docking stations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/44Program or device authentication

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

This application discloses a kind of information processing method and electronic equipments, this method is applied to electronic equipment, this method comprises: when electronic equipment is connected to corresponding expansion equipment, the multiple functional modules installed in detecting expansion equipment, wherein, functional module is for connecting external equipment, electronic equipment is enabled to use external equipment by expansion equipment, to realize the Function Extension of electronic equipment, functional module is corresponding with respective sub-interface, and functional module carries out data communication by corresponding sub-interface and electronic equipment;The identification information of functional module is obtained by sub-interface;The identification information of interface message and corresponding functional module based on each sub-interface, determines the identity information of expansion equipment, to use electronic equipment according to identity information.This method can determine the identity information of expansion equipment according to the identity information of each expansion board, to push the application combination for being suitble to it to use to the electronic equipment for being connected with expansion equipment, provide convenience for user.

Description

A kind of information processing method and electronic equipment
Technical field
This application involves data processing field, in particular to a kind of information processing method and electronic equipment.
Background technique
Currently, the cabinet inside design structure of many computers is very compact, if wanting that more electricity are arranged in cabinet inside Subcomponent is more multi-functional extremely difficult to expand.But due to the diversification of usage scenario, many clients need electricity strongly Brain has the function of more to extend.To solve this technical problem, occur a kind of expansion equipment, such as internal installing currently on the market There is multiple expansion modules (expansion board).However, finding with the use of expansion equipment due to the expansion module in expansion equipment (expansion board) type is more, therefore the processor of computer can not preferably identify it, classified and be applied, so that expansion equipment The extension function that can be constructed is not developed and is used to greatest extent.
Summary of the invention
The application problem to be solved, which is to provide one kind, can rapidly and efficiently identify each expansion module class in expansion equipment Type, while can be pushed in conjunction with practical service environment to the electronic equipment of application this method and apply combined information accordingly or be applicable in In the external equipment etc. of the expansion equipment.
To solve the above-mentioned problems, the application provides a kind of information processing method, is applied to electronic equipment, the method packet It includes:
When the electronic equipment is connected to corresponding expansion equipment, the multiple functions of installing in the expansion equipment are detected Module, wherein the functional module enables the electronic equipment to make by the expansion equipment for connecting external equipment With the external equipment, to realize the Function Extension of the electronic equipment, the functional module is corresponding with respective sub-interface, institute It states functional module and data communication is carried out by corresponding sub-interface and the electronic equipment;
The identification information of the functional module is obtained by the sub-interface;
The identification information of interface message and the corresponding functional module based on each sub-interface, determines the extension The identity information of equipment, with according to the identity information accordingly using the electronic equipment for being connected to the expansion equipment.
Preferably, wherein, the identification information for obtaining the functional module by the sub-interface includes:
The first request instruction is transmitted to the corresponding functional module by the sub-interface;
The first feedback information based on return obtains the identification information;Or
The corresponding mark is determined based on the storing data of the first register of the sub-interface for connecting the functional module Information.
Preferably, the interface message of the sub-interface includes sequence information, the connecing based on each sub-interface The identification information of message breath and the corresponding functional module, determines that the identity information of the expansion equipment specifically includes:
Obtain the sequence information of the sub-interface and the identification information of the corresponding functional module of the sub-interface;
Based on the sequence information and the identification information, the functional information of each functional module is determined, wherein institute State the status information that functional information includes the functional module;
The identity information of the expansion equipment is determined according to the functional information of each functional module.
Preferably, wherein, the identification information includes identification of the manufacturer and product identification, described to be connect based on each son The interface message of mouth and the identification information of the corresponding functional module, determine that the identity information of the expansion equipment further wraps It includes:
Obtain the identification of the manufacturer and product identification of the functional module;
Using the interface message, the identification of the manufacturer and the product identification as querying condition, from preset relation table Obtain the identity information of the expansion equipment.
Preferably, the identity information of the determination expansion equipment, to be made accordingly according to the identity information Include: with the electronic equipment for being connected to the expansion equipment
According to the determining identity information, information, the institute of the application program that the expansion equipment can be performed are obtained At least one of the scene mode of energy adaptation, the data information that can be detected and corresponding external interface information.
Preferably, wherein, the method also includes:
The identity information is sent to associated associate device.
The embodiment of the present application also provides a kind of electronic equipment comprising:
Data-interface, the data-interface are corresponding with multiple sub-interfaces;
Processor is configured to detect the expansion equipment when the electronic equipment is connected to corresponding expansion equipment Multiple functional modules of middle installation, wherein the functional module enables the electronic equipment to lead to for connecting external equipment The expansion equipment is crossed using the external equipment, to realize the Function Extension of the electronic equipment, the functional module is corresponding There is respective sub-interface, the functional module carries out data by corresponding sub-interface and the electronic equipment and leads to Letter;
The identification information of the functional module is obtained by the sub-interface;
The identification information of interface message and the corresponding functional module based on each sub-interface, determines the extension The identity information of equipment, so that the electronic equipment manipulates the expansion equipment according to the identity information.
Preferably, wherein, the processor includes: by the identification information that the sub-interface obtains the functional module The first request instruction is transmitted to the corresponding functional module by the sub-interface;The first feedback information based on return obtains The identification information;Or based on the first register of the sub-interface for connecting the functional module storing data determine it is corresponding The identification information.
Preferably, the interface message of the sub-interface includes sequence information, the processor is further configured to:
Obtain the sequence information of the sub-interface and the identification information of the corresponding functional module of the sub-interface;
Based on the sequence information and the identification information, the functional information of each functional module is determined, wherein institute State the status information that functional information includes the functional module;
The identity information of the expansion equipment is determined according to the functional information of each functional module.
Preferably, wherein, the processor is further configured to: according to the determining identity information, described in acquisition The information for the application program that expansion equipment can be performed, the scene mode that can be adapted to, the data information that can be detected and At least one of corresponding external interface information.
The beneficial effects of the present application are as follows this method can be by the parameter information of each expansion board (functional module) come to each Expansion board (functional module) carries out category identification, and determines that the identity of expansion equipment is believed according to the identity information of each expansion board Breath provides convenience to push the application combination for being suitble to it to use to the electronic equipment for being connected with expansion equipment for user.
Detailed description of the invention
Fig. 1 is the flow chart of the information processing method of the embodiment of the present application;
Fig. 2 is the flow chart of a specific embodiment of step S2 in Fig. 1 of the embodiment of the present application;
Fig. 3 is the flow chart of a specific embodiment of step S3 in Fig. 1 of the embodiment of the present application;
Fig. 4 is the flow chart of another specific embodiment of step S3 in Fig. 1 of the embodiment of the present application;
Fig. 5 is the structural schematic diagram before the electronic equipment of the embodiment of the present application is connect with expansion equipment;
Fig. 6 is the structural schematic diagram after the electronic equipment of the embodiment of the present application is connect with expansion equipment;
Description of symbols
1- electronic equipment 2- expansion equipment
Specific embodiment
The various schemes and feature of the application are described herein with reference to attached drawing.
It should be understood that various modifications can be made to the embodiment applied herein.Therefore, description above should not regard To limit, and only as the example of embodiment.Those skilled in the art will expect in the scope and spirit of the present application Other modifications.
The attached drawing being included in the description and forms part of the description shows embodiments herein, and with it is upper What face provided is used to explain the application together to substantially description and the detailed description given below to embodiment of the application Principle.
By the description of the preferred form with reference to the accompanying drawings to the embodiment for being given as non-limiting example, the application's These and other characteristic will become apparent.
It is also understood that although the application is described referring to some specific examples, those skilled in the art Member realizes many other equivalents of the application in which can determine, they have feature as claimed in claim and therefore all In the protection scope defined by whereby.
When read in conjunction with the accompanying drawings, in view of following detailed description, above and other aspect, the feature and advantage of the application will become It is more readily apparent.
The specific embodiment of the application is described hereinafter with reference to attached drawing;It will be appreciated, however, that applied embodiment is only Various ways implementation can be used in the example of the application.Known and/or duplicate function and structure and be not described in detail to avoid Unnecessary or extra details makes the application smudgy.Therefore, applied specific structural and functionality is thin herein Section is not intended to restrictions, but as just the basis of claim and representative basis be used to instructing those skilled in the art with Substantially any appropriate detailed construction diversely uses the application.
This specification can be used phrase " in one embodiment ", " in another embodiment ", " in another embodiment In " or " in other embodiments ", it can be referred to one or more of the identical or different embodiment according to the application.
A kind of information processing method of the embodiment of the present application, this method are applied to electronic equipment 1, and this method can make electronics Equipment 1 determines connected expansion equipment 2, and carries out normal data interaction with the expansion equipment 2, avoids that suitability mistake occurs Accidentally correctly to use the expansion equipment 2, it should be noted that the electronic equipment 1 can be the equipment with extended capability, example Such as laptop, desktop computer (the Tiny computer that such as Legend Company produces).Fig. 1 is the information processing of the embodiment of the present application The flow chart of method, as shown in Figure 1, method includes the following steps:
S1 detects the multiple function moulds installed in expansion equipment 2 when electronic equipment 1 is connected to corresponding expansion equipment 2 Block, wherein functional module is used to connect external equipment, and electronic equipment 1 is enabled to use external equipment by expansion equipment 2, To realize the Function Extension of electronic equipment 1, functional module is corresponding with respective sub-interface, and functional module passes through corresponding son Interface and electronic equipment 1 carry out data communication.Specifically, multiple functional modules can be according to user's actual needs come any group It closes, forms an expansion equipment 2, electronic equipment 1 (such as above-mentioned Tiny computer) is able to use each function in the expansion equipment 2 Energy module, to increase corresponding function, functional module can connect external equipment, such as connection microphone, be corresponding with microphone Module;Projector is connected, projector module etc. is corresponding with.When electronic equipment 1 can pass through corresponding son when using expansion equipment 2 Interface is connect with microphone module, and then is connect with microphone to use the microphone;When electronic equipment 1 is using expansion equipment It can be connect by corresponding sub-interface with projector module when 2, and then connect with projector to use the projector, to realize The Function Extension of electronic equipment 1.In one embodiment, functional module can by each sub-interface respectively with electronic equipment 1 Connection;In another embodiment, multiple sub-interfaces can occur with a unified interface, allow electronic equipment 1 by this Unified interface is connect with each functional module in expansion equipment 2.In the present embodiment, corresponding expansion is connected in electronic equipment 1 When opening up equipment 2, i.e., just detect multiple functional modules for installing in expansion equipment 2 once connected, due to each expansion module according to Actual needs can be exchanged or be adjusted, therefore can be to expansion equipment 2 when electronic equipment 1 is connected to expansion equipment 2 In each functional module detected, such as by each sub-interface to corresponding each functional module transmission request instruction.
S2 obtains the identification information of functional module by sub-interface.Identification information can be the exclusive of the corresponding function module Information, can determine the significant data of the information such as type and/or the model of the functional module, and then the body of functional module has been determined Part.For example, obtaining the identification information of the first functional module by the first sub-interface, the second function mould is obtained by the second sub-interface The identification information etc. of block, and then the identification information of functional module all in expansion equipment 2 is obtained, with all function moulds of determination The identity information of block.In addition, electronic equipment 1 can be received respectively when receiving identification information by corresponding sub-interface, The response message that each sub-interface is fed back can be combined to be formed single response signal receive again then obtain it is each Identification information.
S3, the identification information of interface message and corresponding functional module based on each sub-interface, determines the body of expansion equipment 2 Part information, with according to identity information accordingly using the electronic equipment 1 for being connected to expansion equipment 2.Sub-interface can be set in electricity In sub- equipment 1,1 top of electronic equipment can also be partially set set up separately and set in expansion equipment 2.The interface message packet of sub-interface The much informations such as location information, type information, the sequence information of enclosed tool interface can determine that corresponding son connects according to interface message Mouthful, in this way in conjunction with the identification information of functional module, each sub-interface can be analyzed and the function that is connected on the sub-interface Can module, and then determine the identity information of expansion equipment 2, that is, expansion module has been determined actually has which extension function.It lifts Example explanation, such as the first sub-interface are connected with the microphone module of the first model, and the second sub-interface is connected with the throwing of the second model Shadow instrument module, third sub-interface are connected with the hard disc module of third model, and the 4th sub-interface is connected with the display mould of the 4th model Block, can be determined based on above- mentioned information include microphone module, projector module, hard disc module and display module first expand The identity information for opening up equipment 2 from can be according to the identity information come using electronic equipment 1, including can be directed to the first extension and set Standby 2 identity information to carry out corresponding operating to the electronic equipment 1, is such as configured to progress related software in electronic equipment 1 So as to electronic equipment 1 can be properer the use expansion equipment 2 (if setting related software is so as to using each function Combination), or information relevant to the first expansion equipment 2 is pushed (if push projection software is will pass through electricity to the electronic equipment 1 Sub- equipment 1 correctly uses the projection software, if it is not known that whether expansion equipment 2 has projecting function, the projection software of push It is possible that can not use, lead to push mistake).Furthermore it should be noted that the position of the distribution of each sub-interface or row The different corresponding expansion equipments 2 of the sequence (i.e. sequence information then also will do it explanation) of column are also different, i.e., same several It is different if the expansion equipment 2 that the distributing position of the corresponding sub-interface of a functional module is differently formed is recognized as.
In one embodiment of the application, Fig. 2 is a specific embodiment of step S2 in Fig. 1 of the embodiment of the present application Flow chart, as shown in Fig. 2, it is described by sub-interface obtain functional module identification information the step of the following steps are included:
S21 transmits the first request instruction to corresponding functional module by sub-interface.Specifically, electronics can be made to set Standby 1 sends the first request instruction, the first request instruction packet by each sub-interface, to the corresponding each functional module of sub-interface The instruction of request feedback indicator information is included, which can require functional module immediately while feed back, can also be with The various modes such as feed back one by one according to the sequence (i.e. sequence information then also will do it explanation) of distribution or the arrangement of sub-interface, If feedback efficiency can be improved in feedback simultaneously, and can be with if being fed back one by one according to the sequence of the distribution of sub-interface or arrangement Improve the efficiency according to identification information judgment functional module.
S22, the first feedback information based on return obtain identification information;Alternatively, the sub-interface based on linkage function module The storing data of the first register determine corresponding identification information.Specifically, functional module can be to the first request instruction It responds, and by identification information feedback to electronic equipment 1.It in one embodiment, include mark letter in the first feedback information Breath, also the status information including the corresponding function module itself and/or the status information etc. of the external equipment of functional module connection, are obtained Identification information can be obtained after getting the first feedback information, additionally it is possible to get it is above-mentioned with functional module relevant information, in turn It obtains the identity of expansion equipment 2 and obtains current state more accurately to use expansion equipment 2, such as learn a function mould Block can postpone to push software application information relevant to the functional module to electronic equipment 1 when restarting.In addition, another In a embodiment, identification information can be stored in advance in the first register of sub-interface, if the function mould in expansion equipment 2 Block changes, and can be modified to the identification information stored in the first register, so as to directly from the first register It is middle to read current identification information.
In one embodiment of the application, the interface message of sub-interface includes sequence information, and Fig. 3 is the embodiment of the present application Fig. 1 in step S3 a specific embodiment flow chart, as shown in figure 3, the interface message based on each sub-interface With the identification information of corresponding functional module, the step of determining the identity information of expansion equipment 2 specifically includes the following steps:
S31 obtains the sequence information of sub-interface and the identification information of the corresponding functional module of sub-interface.Sequence information The logic sequence that can be sub-interface is also possible to the physical sequence (position sequence) of sub-interface, in one embodiment, into When row obtains operation, sequence information can be determined first, and obtain the son again after the sequence information that each sub-interface has been determined The identification information of the functional module of interface connection;In another embodiment, it can be inquired again according to the identification information got The sequence information for the sub-interface that corresponding functional module is connected, in this way can be quickly by the sequence information of sub-interface and function The identification information of module is associated.
S32 is based on sequence information and identification information, determines the functional information of each functional module, wherein functional information packet Include the status information of functional module.Specifically, the functional information of functional module may include the type and model of functional module, The case where sub-interface that the functional module is connected and/or the status information of functional module etc., the status information show function The currently used situation of module, such as the currently used state of whether standby or corresponding external equipment itself.One In a embodiment, the identical functional module of function may be considered that not to be the same function if corresponding sequence information difference Energy module, such as two identical functional modules are arranged in the same expansion equipment 2, when in use then can be according to different Sequence information such as is called at the operation to it respectively.If the even same functional module has changed the sequence letter of sub-interface Breath, then be also required to be operated based on the sequence information of the sub-interface after replacement when in use, to use electronic equipment 1 When can be adapted with expansion equipment 2.
S33 determines the identity information of expansion equipment 2 according to the functional information of each functional module.Each function has been determined Make electronic equipment 1 can determine the identity information and/or status information of the expansion equipment 2 after the functional information of module, and fills Divide the external equipment for grasping functional module therein and its connection, and then expansion equipment 2 specifically operated according to identity information, Certain user can also preferably use the electronic equipment 1, such as suitable to the push of electronic equipment 1 and 2 phase of expansion equipment connecting The operation such as software program matched.
In one embodiment of the application, identification information includes identification of the manufacturer (PID) and product identification (VID), and Fig. 4 is The flow chart of another specific embodiment of step S3 in Fig. 1 of the embodiment of the present application, as shown in figure 4, described based on each son The identification information of the interface message of interface and corresponding functional module, the step of determining the identity information of expansion equipment 2, are further The following steps are included:
S34 obtains the identification of the manufacturer and product identification of functional module.Each functional module have identification of the manufacturer (PID) and Product identification (VID), other equipment can distinguish different functional modules by PID and VID.PID and VID has default Byte length, wherein each VID is unique, and PID can be decided in its sole discretion by manufacturer, under normal conditions different products, phase Different PID can be all used with the different model of product, the product of the different designs of same model, to distinguish identical producer Distinct device.In addition, obtain functional module identification of the manufacturer and product identification when, can by functional module active transmission, It is obtained after being requested by electronic equipment 1.
S35 is expanded from preset relation table using interface message, identification of the manufacturer and product identification as querying condition The identity information of equipment 2.Interface message, identification of the manufacturer, product identification and identity information have incidence relation in preset relation table, It in one embodiment, can data (can determine the tool of functional module as a whole by identification of the manufacturer and product identification Body information), querying condition, base are used as according to the overall data and interface message (such as above-mentioned sequence information, location information) The identity information of corresponding expansion equipment 2 is inquired in preset relation table.In one embodiment, sub-interface can be PCIE and connect Mouthful.It include four functional modules in expansion equipment 2 for example, preset relation table as shown in Table 1,
Wherein, the functional module with VID_17EF and PID_60A9 has corresponded to the first PCIE interface, has VID_1701 Corresponding with the functional module of PID_60B3 the 2nd PCIE interface, the functional module with VID_1712 and PID_60C5 are corresponding 3rd PCIE interface, the functional module with VID_1726 and PID_60D8 has corresponded to the 4th PCIE interface, thus from default pass It is the first expansion equipment 2 that the serial number 1 that the expansion equipment 2 is composite type can be obtained in table.If certain functional module It is respectively provided with other VID and PID then and can inquire from preset relation table the sequence of the composite type of the expansion equipment 2 Number, the second expansion equipment 2 of serial number 2 is such as represented, third expansion equipment 2 of serial number 3 etc., details are not described herein.
In one embodiment of the application, the identity information of the determination expansion equipment 2, according to identity information phase It includes: to obtain extension according to determining identity information that the use answered, which is connected to the step of electronic equipment 1 of expansion equipment 2, The information for the application program that equipment 2 can be performed, the scene mode that can be adapted to, the data information that can be detected and correspondence At least one of external interface information.Specifically, the information for the application program that expansion equipment 2 can be performed is obtained Afterwards, corresponding application program can be recommended to electronic equipment 1 according to the information;Obtain the scene mould that expansion equipment 2 can be adapted to Formula allows to the scene mode according to actual use situation setting electronic equipment 1;Obtain the number that expansion equipment 2 can be detected It is believed that breath, so that obtaining corresponding data using electronic equipment 1 according to the data information;And it obtains external interface information and then may be used To determine that electronic equipment 1 is able to use the external equipment etc. of those types according to the information, and then preferably use the electronics Equipment 1.
In one embodiment of the application, the information processing method further include: be sent to identity information associated Associate device.Associate device be with the associated equipment of electronic equipment 1, be also possible to the associated equipment of expansion equipment 2, by body Part information, which is sent to associate device, can enable the associate device directly using the identity information, such as to same expansion equipment 2 are directly employed without and go to judge again, improve utilization efficiency.Such as the identity information is sent to and current first Identical second electronic equipment 1 of the model of electronic equipment 1, so that the second electronic equipment 1 is when being connected to same expansion equipment 2 It can directly be employed without and go to make a decision again.
The embodiment of the present application also provides a kind of electronic equipment 1, which can determine connected expansion equipment 2, and normal data interaction is carried out with the expansion equipment 2, it avoids that suitability mistake occurs correctly to use the expansion equipment 2, it should be noted that the electronic equipment 1 can be the equipment with extended capability, such as laptop, desktop computer is (such as The Tiny computer that Legend Company produces) etc..Fig. 5 is the structure before the electronic equipment 1 of the embodiment of the present application is connect with expansion equipment 2 Schematic diagram, Fig. 6 is the structural schematic diagram after the electronic equipment 1 of the embodiment of the present application is connect with expansion equipment 2, in conjunction with Fig. 5 and Fig. 6 Shown, which includes: data-interface and processor, and wherein data-interface is corresponding with multiple sub-interfaces.
Processor is configured to when electronic equipment 1 is connected to corresponding expansion equipment 2, is installed in detecting expansion equipment 2 Multiple functional modules, wherein functional module enables electronic equipment 1 to use by expansion equipment 2 for connecting external equipment External equipment, to realize the Function Extension of electronic equipment 1, functional module is corresponding with respective sub-interface, and functional module passes through each Self-corresponding sub-interface and electronic equipment 1 carry out data communication.Specifically, multiple functional modules can be according to the practical need of user Carry out any combination, form an expansion equipment 2, electronic equipment 1 (such as above-mentioned Tiny computer) is able to use the expansion equipment 2 In each functional module, to increase corresponding function, functional module can connect external equipment, such as connection microphone, right There should be microphone module;Projector is connected, projector module etc. is corresponding with.When electronic equipment 1 can when using expansion equipment 2 It is connect by corresponding sub-interface with microphone module, and then connect with microphone to use the microphone;When electronic equipment 1 makes It can be connect by corresponding sub-interface with projector module with when expansion equipment 2, and then connect with projector to use the projection Instrument, to realize the Function Extension of electronic equipment 1.In one embodiment, functional module can be distinguished by each sub-interface It is connect with electronic equipment 1;In another embodiment, multiple sub-interfaces can occur with a unified interface, so that electronic equipment 1 It can be connect by the unified interface with each functional module in expansion equipment 2.In the present embodiment, connected in electronic equipment 1 When corresponding expansion equipment 2, i.e., the multiple functional modules installed in expansion equipment 2 are just detected once connected, due to each expansion Exhibition module can be exchanged or be adjusted according to actual needs, therefore can be right when electronic equipment 1 is connected to expansion equipment 2 Each functional module in expansion equipment 2 is detected, and is such as asked by each sub-interface to corresponding each functional module transmission Ask instruction.
The identification information of functional module is obtained by sub-interface.Identification information can be the exclusive letter of the corresponding function module Breath, can determine the significant data of the information such as type and/or the model of the functional module, and then the body of functional module has been determined Part.For example, obtaining the identification information of the first functional module by the first sub-interface, the second function mould is obtained by the second sub-interface The identification information etc. of block, and then the identification information of functional module all in expansion equipment 2 is obtained, with all function moulds of determination The identity information of block.In addition, electronic equipment 1 can be received respectively when receiving identification information by corresponding sub-interface, The response message that each sub-interface is fed back can be combined to be formed single response signal receive again then obtain it is each Identification information.
The identification information of interface message and corresponding functional module based on each sub-interface, determines the identity of expansion equipment 2 Information, so that electronic equipment 1 manipulates expansion equipment 2 according to identity information.Sub-interface can be set in electronic equipment 1 On, 1 top of electronic equipment can also be partially set set up separately and set in expansion equipment 2.The interface message of sub-interface connects including son The much informations such as location information, type information, the sequence information of mouth, can determine corresponding sub-interface according to interface message, this Sample can analyze each sub-interface and the function mould that is connected on the sub-interface in conjunction with the identification information of functional module Block, and then determine the identity information of expansion equipment 2, that is, expansion module has been determined actually has which extension function.It illustrates It is bright, such as the first sub-interface is connected with the microphone module of the first model, the second sub-interface is connected with the projector of the second model Module, third sub-interface are connected with the hard disc module of third model, and the 4th sub-interface is connected with the display module of the 4th model, base In above- mentioned information can determine include microphone module, projector module, hard disc module and display module first extension set Standby identity information, from can be according to the identity information come using electronic equipment 1, the body including the first expansion equipment can be directed to Part information to carry out corresponding operating to the electronic equipment 1, is such as configured to electronics to progress related software in electronic equipment 1 Equipment 1 can be properer the use expansion equipment 2 (such as setting related software so as to using each function combination), or Person pushes information relevant to the first expansion equipment (if push projection software is will pass through electronic equipment 1 just to the electronic equipment 1 The true use projection software, if it is not known that whether expansion equipment 2 has projecting function, the projection software of push is possible to not It can use, lead to push mistake).Furthermore it should be noted that the sequence of the position of the distribution of each sub-interface or arrangement (i.e. Sequence information then also will do it explanation) different corresponding expansion equipment 2 is also different, i.e., same several functional modules It is different if the expansion equipment 2 that the distributing position of corresponding sub-interface is differently formed is recognized as.
In one embodiment of the application, processor includes: logical by the identification information that sub-interface obtains functional module It crosses sub-interface and transmits the first request instruction to corresponding functional module;The first feedback information based on return obtains identification information; Or corresponding identification information is determined based on the storing data of the first register of the sub-interface of linkage function module.It is specific next It says, allows electronic equipment 1 by each sub-interface, send the first request to the corresponding each functional module of sub-interface and refer to It enables, which includes the instruction for requesting feedback indicator information, which can require functional module It feeds back simultaneously immediately, it can also be according to the sequence (i.e. sequence information then also will do it explanation) of distribution or the arrangement of sub-interface The various modes such as feedback one by one, if feedback can be improved feedback efficiency simultaneously, and if according to sub-interface distribution or arrangement Sequence feed back one by one, the efficiency according to identification information judgment functional module can be improved.In addition, functional module can be to One request instruction responds, and by identification information feedback to electronic equipment 1.In one embodiment, in the first feedback information Including identification information, the shape for the external equipment that also status information including the corresponding function module itself and/or functional module connect State information etc. can obtain identification information after getting the first feedback information, additionally it is possible to get above-mentioned with functional module phase Information is closed, and then obtains the identity of expansion equipment 2 and obtains current state more accurately to use expansion equipment 2, such as obtain Knowing can postpone to push software application letter relevant to the functional module to electronic equipment 1 when a functional module is being restarted Breath.In addition, in another embodiment, identification information can be stored in advance in the first register of sub-interface, if extension Functional module in equipment 2 changes, and can be modified to the identification information stored in the first register, so as to Current identification information is directly read from the first register.
In one embodiment of the application, the interface message of sub-interface includes sequence information, and processor further configures Are as follows:
Obtain the sequence information of sub-interface and the identification information of the corresponding functional module of sub-interface.Sequence information can be with It is the logic sequence of sub-interface, the physical sequence (position sequence) for being also possible to sub-interface is being obtained in one embodiment When extract operation, sequence information can be determined first, and obtain the sub-interface again after the sequence information that each sub-interface has been determined The identification information of the functional module of connection;In another embodiment, correspondence can be inquired according to the identification information got again The sequence information of sub-interface that is connected of functional module, in this way can be quickly by the sequence information of sub-interface and functional module Identification information it is associated.
Based on sequence information and identification information, the functional information of each functional module is determined, wherein functional information includes function The status information of energy module.Specifically, the functional information of functional module may include the type and model of functional module, the function The case where sub-interface that energy module is connected and/or the status information of functional module etc., which shows functional module Currently used situation, such as the currently used state of whether standby or corresponding external equipment itself.In a reality It applies in example, the identical functional module of function may be considered that not to be the same function mould if corresponding sequence information difference Block, such as two identical functional modules are arranged in the same expansion equipment 2, when in use then can be according to different sequences Information such as is called at the operation to it respectively.If the even same functional module has changed the sequence information of sub-interface, It is also required to be operated based on the sequence information of the sub-interface after replacement when in use, so as to energy when using electronic equipment 1 It is enough to be adapted with expansion equipment 2.
The identity information of expansion equipment 2 is determined according to the functional information of each functional module.Each functional module has been determined Functional information after make electronic equipment 1 can determine the identity information and/or status information of the expansion equipment 2, and sufficiently slap The external equipment of functional module therein and its connection is held, and then expansion equipment 2 is specifically operated according to identity information, certainly User can also preferably use the electronic equipment 1, such as compatible with the expansion equipment 2 connecting to the push of electronic equipment 1 The operation such as software program.
In one embodiment of the application, identification information includes identification of the manufacturer (PID) and product identification (VID), processing Device is further configured to:
Obtain the identification of the manufacturer and product identification of functional module.Each functional module has identification of the manufacturer (PID) and product It identifies (VID), other equipment can distinguish different functional modules by PID and VID.PID and VID have preset byte Length, wherein each VID is unique, and PID can be decided in its sole discretion by manufacturer, under normal conditions different products, identical production The different model of product, the product of the different designs of same model can all use different PID, to distinguish the difference of identical producer Equipment.In addition, when obtaining the identification of the manufacturer and product identification of functional module, it can be by functional module active transmission, it can also be with It is obtained after being requested by electronic equipment 1.
Using interface message, identification of the manufacturer and product identification as querying condition, the equipment that is expanded from preset relation table 2 Identity information.Interface message, identification of the manufacturer, product identification and identity information have incidence relation in preset relation table, one It, can data (can determine the specific letter of functional module as a whole by identification of the manufacturer and product identification in a embodiment Breath), querying condition is used as according to the overall data and interface message (such as above-mentioned sequence information, location information), based on pre- If relation table inquires the identity information of corresponding expansion equipment 2.In one embodiment, sub-interface can be PCIE interface. It include four functional modules in expansion equipment 2 for example, preset relation table as shown in Table 1,
Wherein, the functional module with VID_17EF and PID_60A9 has corresponded to the first PCIE interface, has VID_1701 Corresponding with the functional module of PID_60B3 the 2nd PCIE interface, the functional module with VID_1712 and PID_60C5 are corresponding 3rd PCIE interface, the functional module with VID_1726 and PID_60D8 has corresponded to the 4th PCIE interface, thus from default pass It is that the first expansion equipment that the expansion equipment 2 is the serial number 1 of composite type can be obtained in table.If certain functional module point Not Ju You others VID and PID can then be inquired from preset relation table the expansion equipment 2 composite type sequence Number, the second expansion equipment of serial number 2 is such as represented, third expansion equipment of serial number 3 etc., details are not described herein.
In one embodiment of the application, processor is further configured to: according to determining identity information, obtaining extension The information for the application program that equipment 2 can be performed, the scene mode that can be adapted to, the data information that can be detected and correspondence At least one of external interface information.Specifically, the information for the application program that expansion equipment 2 can be performed is obtained Afterwards, corresponding application program can be recommended to electronic equipment 1 according to the information;Obtain the scene mould that expansion equipment 2 can be adapted to Formula allows to the scene mode according to actual use situation setting electronic equipment 1;Obtain the number that expansion equipment 2 can be detected It is believed that breath, so that obtaining corresponding data using electronic equipment 1 according to the data information;And it obtains external interface information and then may be used To determine that electronic equipment 1 is able to use the external equipment etc. of those types according to the information, and then preferably use the electronics Equipment 1.
In one embodiment of the application, processor is further configured to: identity information is sent to associated pass Join equipment.Associate device be with the associated equipment of electronic equipment 1, be also possible to the associated equipment of expansion equipment 2, by identity Information, which is sent to associate device, can enable the associate device directly using the identity information, such as to same expansion equipment 2 It is directly employed without and goes to judge again, improve utilization efficiency.Such as the identity information is sent to and current first Identical second electronic equipment 1 of the model of electronic equipment 1, so that the second electronic equipment 1 is when being connected to same expansion equipment 2 It can directly be employed without and go to make a decision again.
Above embodiments are only the exemplary embodiment of the application, are not used in limitation the application, the protection scope of the application It is defined by the claims.Those skilled in the art can make respectively the application in the essence and protection scope of the application Kind modification or equivalent replacement, this modification or equivalent replacement also should be regarded as falling within the scope of protection of this application.

Claims (10)

1. a kind of information processing method is applied to electronic equipment, which comprises
When the electronic equipment is connected to corresponding expansion equipment, the multiple function moulds installed in the expansion equipment are detected Block, wherein the functional module enables the electronic equipment to use by the expansion equipment for connecting external equipment The external equipment, to realize the Function Extension of the electronic equipment, the functional module is corresponding with respective sub-interface, described Functional module carries out data communication by corresponding sub-interface and the electronic equipment;
The identification information of the functional module is obtained by the sub-interface;
The identification information of interface message and the corresponding functional module based on each sub-interface, determines the expansion equipment Identity information, with according to the identity information accordingly using the electronic equipment for being connected to the expansion equipment.
2. according to the method described in claim 1, wherein, the mark that the functional module is obtained by the sub-interface Information includes:
The first request instruction is transmitted to the corresponding functional module by the sub-interface;
The first feedback information based on return obtains the identification information;Or
The corresponding identification information is determined based on the storing data of the first register of the sub-interface for connecting the functional module.
3. described based on each institute according to the method described in claim 1, the interface message of the sub-interface includes sequence information The interface message of sub-interface and the identification information of the corresponding functional module are stated, determines the identity information tool of the expansion equipment Body includes:
Obtain the sequence information of the sub-interface and the identification information of the corresponding functional module of the sub-interface;
Based on the sequence information and the identification information, the functional information of each functional module is determined, wherein the function Energy information includes the status information of the functional module;
The identity information of the expansion equipment is determined according to the functional information of each functional module.
4. according to the method described in claim 1, wherein, the identification information includes identification of the manufacturer and product identification, described The identification information of interface message and the corresponding functional module based on each sub-interface, determines the body of the expansion equipment Part information further comprises:
Obtain the identification of the manufacturer and product identification of the functional module;
Using the interface message, the identification of the manufacturer and the product identification as querying condition, obtained from preset relation table The identity information of the expansion equipment.
5. according to the method described in claim 1, the identity information of the determination expansion equipment, according to the identity Information includes: using the electronic equipment for being connected to the expansion equipment accordingly
According to the determining identity information, obtains the information for the application program that the expansion equipment can be performed, can fit At least one of the scene mode matched, the data information that can be detected and corresponding external interface information.
6. according to the method described in claim 1, wherein, the method also includes:
The identity information is sent to associated associate device.
7. a kind of electronic equipment comprising:
Data-interface, the data-interface are corresponding with multiple sub-interfaces;
Processor is configured to detect and pacify in the expansion equipment when the electronic equipment is connected to corresponding expansion equipment Multiple functional modules of dress, wherein the functional module enables the electronic equipment to pass through institute for connecting external equipment Expansion equipment is stated using the external equipment, to realize the Function Extension of the electronic equipment, the functional module is corresponding with respectively From sub-interface, the functional module passes through corresponding sub-interface and the electronic equipment and carries out data communication;
The identification information of the functional module is obtained by the sub-interface;
The identification information of interface message and the corresponding functional module based on each sub-interface, determines the expansion equipment Identity information so that the electronic equipment manipulates the expansion equipment according to the identity information.
8. electronic equipment according to claim 7, wherein the processor obtains the function mould by the sub-interface The identification information of block includes: to transmit the first request instruction to the corresponding functional module by the sub-interface;Based on return The first feedback information obtain the identification information;Or the first register based on the sub-interface for connecting the functional module Storing data determines the corresponding identification information.
9. electronic equipment according to claim 7, the interface message of the sub-interface includes sequence information, the processor It is further configured to:
Obtain the sequence information of the sub-interface and the identification information of the corresponding functional module of the sub-interface;
Based on the sequence information and the identification information, the functional information of each functional module is determined, wherein the function Energy information includes the status information of the functional module;
The identity information of the expansion equipment is determined according to the functional information of each functional module.
10. electronic equipment according to claim 7, wherein the processor is further configured to: according to determining Identity information, the information for obtaining the application program that the expansion equipment can be performed, can be examined the scene mode that can be adapted to At least one of the data information of survey and corresponding external interface information.
CN201810877968.0A 2018-08-03 2018-08-03 Information processing method and electronic equipment Active CN109164874B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810877968.0A CN109164874B (en) 2018-08-03 2018-08-03 Information processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810877968.0A CN109164874B (en) 2018-08-03 2018-08-03 Information processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN109164874A true CN109164874A (en) 2019-01-08
CN109164874B CN109164874B (en) 2021-09-14

Family

ID=64898812

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810877968.0A Active CN109164874B (en) 2018-08-03 2018-08-03 Information processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN109164874B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113653906A (en) * 2021-08-23 2021-11-16 联想(北京)有限公司 Base and electronic device
CN115328375A (en) * 2022-06-30 2022-11-11 深圳市国电科技通信有限公司 Function expansion method and device for intelligent measurement terminal and intelligent terminal

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1873570A (en) * 2006-05-25 2006-12-06 天津大学 Modularized reconfigurable networked digital control system in open type
US20080195797A1 (en) * 2007-02-13 2008-08-14 Itay Sherman Interface for extending functionality of memory cards
CN103164182A (en) * 2011-12-16 2013-06-19 联想(北京)有限公司 Extension method of display port and electronic equipment
CN104915306A (en) * 2014-03-12 2015-09-16 深圳市顶峰科技有限公司 Data operation control method and device manager
CN107003974A (en) * 2016-06-03 2017-08-01 达闼科技(北京)有限公司 A kind of interface detection method and device
CN108052094A (en) * 2017-12-20 2018-05-18 深圳市英威腾电气股份有限公司 A kind of extension card identification method, device and frequency converter

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1873570A (en) * 2006-05-25 2006-12-06 天津大学 Modularized reconfigurable networked digital control system in open type
US20080195797A1 (en) * 2007-02-13 2008-08-14 Itay Sherman Interface for extending functionality of memory cards
CN103164182A (en) * 2011-12-16 2013-06-19 联想(北京)有限公司 Extension method of display port and electronic equipment
CN104915306A (en) * 2014-03-12 2015-09-16 深圳市顶峰科技有限公司 Data operation control method and device manager
CN107003974A (en) * 2016-06-03 2017-08-01 达闼科技(北京)有限公司 A kind of interface detection method and device
CN108052094A (en) * 2017-12-20 2018-05-18 深圳市英威腾电气股份有限公司 A kind of extension card identification method, device and frequency converter

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113653906A (en) * 2021-08-23 2021-11-16 联想(北京)有限公司 Base and electronic device
CN115328375A (en) * 2022-06-30 2022-11-11 深圳市国电科技通信有限公司 Function expansion method and device for intelligent measurement terminal and intelligent terminal

Also Published As

Publication number Publication date
CN109164874B (en) 2021-09-14

Similar Documents

Publication Publication Date Title
CN109361562B (en) Automatic testing method based on associated network equipment access
DE112010001170B4 (en) Accessory device and mobile computing device communication using an application communication protocol
KR101914604B1 (en) Control method and control system for iot device using cloud platform
CN103595717B (en) Household appliance control protocol conversion method and control terminal
CN109101381A (en) Configuration file update method, system, electronic equipment and storage medium
CN113672441B (en) Method and device for testing intelligent equipment
US20090254682A1 (en) Automatic mapping and updating computer switching device
US10402288B2 (en) USB-testing method and testing fixture board for USB device
US20100218043A1 (en) System and method for testing a serial attached small computer system interface
CN107078806B (en) The programmed method and operating method and electric interfaces equipment of optical transceiver
CN108897647B (en) Test system, test method and device
CN109164874A (en) A kind of information processing method and electronic equipment
EP3828744A1 (en) Contactless user authentication method
TW201611540A (en) Auto re-pairing and virtual port number for remote management system for servers
CN103685176B (en) Terminal equipment, equipment management server and connection establishment method
US9846609B2 (en) System and method for testing configuration and operation of I/O devices
CN112698640B (en) ECU upgrading test system
US11128527B2 (en) Installation support device and method for installation process support for an automation system
CN105592570B (en) device pairing method and system
CN105635200A (en) Information processing method, electronic equipment, server and information processing system
CN114338493A (en) NCSI test method, system, device and storage medium based on network protocol stack
EP3258328A1 (en) Plc control data generation device, plc control data generation method, and plc control data generation program
CN105142237B (en) Device pairing method and system
CN110426582A (en) A kind of line detection system
US10554695B2 (en) Networked device connection system

Legal Events

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