CN113760804A - Module identification method and device, storage medium and electronic equipment - Google Patents

Module identification method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN113760804A
CN113760804A CN202110084940.3A CN202110084940A CN113760804A CN 113760804 A CN113760804 A CN 113760804A CN 202110084940 A CN202110084940 A CN 202110084940A CN 113760804 A CN113760804 A CN 113760804A
Authority
CN
China
Prior art keywords
module
plug
plugging
pin
communication interface
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.)
Pending
Application number
CN202110084940.3A
Other languages
Chinese (zh)
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.)
Suzhou Zhendi Intelligent Technology Co Ltd
Original Assignee
Suzhou Zhendi Intelligent Technology Co 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 Suzhou Zhendi Intelligent Technology Co Ltd filed Critical Suzhou Zhendi Intelligent Technology Co Ltd
Priority to CN202110084940.3A priority Critical patent/CN113760804A/en
Publication of CN113760804A publication Critical patent/CN113760804A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4004Coupling between buses
    • G06F13/4022Coupling between buses using switching circuits, e.g. switching matrix, connection or expansion network

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application provides a method and a device for identifying a module, a storage medium and electronic equipment, wherein the method comprises the following steps: acquiring characteristic information corresponding to the plug-in module; determining the type of the plugging module according to the characteristic information corresponding to the plugging module; determining a target communication interface corresponding to the plug-in module from a plurality of communication interfaces of the processing device according to the type of the plug-in module; and the control switching circuit connects the plugging module with the target communication interface. The embodiment of the application can realize automatic identification of the plugging module and automatic switching of the signal channel, and can also reduce the number of external plugging ports and internal circuits of the intelligent equipment, thereby not only realizing miniaturization of the intelligent equipment, but also achieving the purpose of improving the reliability of the interface.

Description

Module identification method and device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of module identification, and in particular, to a method, an apparatus, a storage medium, and an electronic device for identifying a module.
Background
Existing smart devices (e.g., consumer-grade flying robots) are devices that can plug in multiple modules.
However, because each socket for plugging the corresponding module on the intelligent device is correspondingly provided with a connection circuit, the number of connection circuits inside the intelligent device is large, and the problem of overlarge size of the intelligent device is caused.
Disclosure of Invention
An object of the embodiment of the application is to provide a method and device for identifying a module, a storage medium and an electronic device, so as to realize miniaturization of an intelligent device.
In a first aspect, an embodiment of the present application provides a method for identifying a module, where the method includes: acquiring characteristic information corresponding to the plug-in module; determining the type of the plugging module according to the characteristic information corresponding to the plugging module; determining a target communication interface corresponding to the plug-in module from a plurality of communication interfaces of the processing device according to the type of the plug-in module; and the control switching circuit connects the plugging module with the target communication interface.
Therefore, the embodiment of the application determines the type of the plugging module by acquiring the characteristic information corresponding to the plugging module and according to the characteristic information corresponding to the plugging module, determines the target communication interface corresponding to the plugging module from a plurality of communication interfaces of the processing device according to the type of the plugging module, and finally controls the switching circuit to connect the plugging module and the target communication interface, so that the intelligent device can realize the automatic identification of the plugging module and the automatic switching of a signal channel, the number of external plugging interfaces and internal circuits of the intelligent device can be reduced, the miniaturization of the intelligent device can be realized, and the purpose of improving the reliability of the interface can be achieved.
In one possible embodiment, the intelligent device includes a first PIN and a second PIN, the first PIN is used to determine the type of the plug module, and the second PIN is used to implement communication between the plug module and the processing device, and acquire characteristic information corresponding to the plug module, including: and acquiring the level information of the first class PIN foot corresponding to the plug-in module.
Therefore, the type of the plugging module can be determined through the level information of the first type of PIN PIN.
In a possible embodiment, the feature information includes software address information of the plug module, and acquiring the feature information corresponding to the plug module includes: and receiving information which is sent by the plug-in module and carries software address information.
Therefore, the type of the plug module can be determined through the software address information, the scheme is suitable for the plug module which can actively or passively send data after being powered on, and the hardware interface of the plug module can set the address bit without configuring the level, so that the plug module has more advantages over 4 devices.
In one possible embodiment, the plug module comprises at least one of the following modules: display module assembly, flash of light module, sound module, flight module and location module of making a video recording.
In a second aspect, an embodiment of the present application provides a device for identifying a module, where the device is applied to a processing device in an intelligent device capable of plugging in the module, the intelligent device further includes a switching circuit, and the device includes: the acquisition module is used for acquiring the characteristic information corresponding to the plug-in module; the first determining module is used for determining the type of the plugging module according to the characteristic information corresponding to the plugging module; the second determining module is used for determining a target communication interface corresponding to the plugging module from the plurality of communication interfaces of the processing device according to the category of the plugging module; and the control module is used for controlling the switching circuit to connect the plugging module with the target communication interface.
In a possible embodiment, the intelligent device includes a first PIN and a second PIN, the first PIN is used for determining the type of the plug-in module, the second PIN is used for implementing communication between the plug-in module and the processing device, and the obtaining module is specifically used for obtaining level information of the first PIN corresponding to the plug-in module.
In a possible embodiment, the feature information includes software address information of the plug module, and the obtaining module is specifically configured to receive information carrying the software address information sent by the plug module.
In one possible embodiment, the plug module comprises at least one of the following modules: display module assembly, flash of light module, sound module, flight module and location module of making a video recording.
In a third aspect, an embodiment of the present application provides a storage medium, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, the computer program performs the method according to the first aspect or any optional implementation manner of the first aspect.
In a fourth aspect, an embodiment of the present application provides an electronic device, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is running, the machine-readable instructions when executed by the processor performing the method of the first aspect or any of the alternative implementations of the first aspect.
In a fifth aspect, the present application provides a computer program product which, when run on a computer, causes the computer to perform the method of the first aspect or any possible implementation manner of the first aspect.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic diagram illustrating an intelligent device provided in an embodiment of the present application;
fig. 2 shows a specific schematic diagram of an intelligent device provided in an embodiment of the present application;
fig. 3 is a flowchart illustrating a method for identifying a module according to an embodiment of the present application;
fig. 4 is a block diagram illustrating a structure of an apparatus for identifying a module according to an embodiment of the present disclosure;
fig. 5 shows a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
The existing intelligent equipment can support the requirements of a plurality of use scenes (such as handheld scenes and flying scenes), and the existing intelligent equipment is provided with a plurality of interfaces capable of being plugged with modules.
For example, current smart machine has the interface that can peg graft display module to under the condition that makes smart machine be in handheld state, realize the browsing of shooting the picture through display module.
However, because the connection circuit corresponding to each interface is adapted inside the intelligent device, the number of the connection circuits inside the intelligent device is too large, and the problems of overlarge size, unattractive appearance, limited type selection of the interfaces and the like are caused. And, the existing intelligent equipment still has the problem that interface reliability is not good because PIN foot definition is too much.
Based on this, the embodiment of the present application skillfully provides a scheme for identifying a module, in which the type of the plugging module is determined by acquiring feature information corresponding to the plugging module and according to the feature information corresponding to the plugging module, a target communication interface corresponding to the plugging module is determined from a plurality of communication interfaces of a processing device according to the type of the plugging module, and finally a switching circuit is controlled to connect the plugging module and the target communication interface.
Therefore, the embodiment of the application determines the type of the plugging module by acquiring the characteristic information corresponding to the plugging module and according to the characteristic information corresponding to the plugging module, determines the target communication interface corresponding to the plugging module from a plurality of communication interfaces of the processing device according to the type of the plugging module, and finally controls the switching circuit to connect the plugging module and the target communication interface, so that a plurality of plugging modules can be plugged in one plugging port of the intelligent equipment.
Referring to fig. 1, fig. 1 shows a schematic diagram of an intelligent device according to an embodiment of the present application. The smart device shown in fig. 1 comprises a socket, a switching circuit and a processing means.
The socket can at least comprise two connecting parts, wherein one connecting part is used for detecting the plug-in module and is connected with the processing device, and the other connecting part is used for switching the corresponding communication interface to be connected with the plug-in module through the switching circuit; the switching circuit also can comprise at least two connecting parts, wherein one connecting part can be used for receiving a switching instruction sent by the processing device and is directly connected with the processing device, and the other connecting part controls the single-pole double-throw switch to a target communication interface according to the received switching instruction, wherein the target communication interface can be a first communication interface or a second communication interface; the processing device may include an insertion detection module, a processing module, a first communication interface, and a second communication interface.
It should be understood that a socket may also be referred to as a universal interface, a modular interface, etc.
It should also be understood that the specific type and number of the sockets and the like can be set according to actual requirements, and the embodiments of the present application are not limited thereto.
For example, the smart device may include two sockets, and each socket may have a corresponding switching circuit, that is, at least two switching circuits may be disposed inside the smart device, and each switching circuit may be connected to the socket of the pair in the manner shown in fig. 1.
It should also be understood that the specific circuits, the number of the switching circuits, and the like can be set according to actual requirements, and the embodiments of the present application are not limited thereto.
It should be noted that, for the switching circuit, the switching may be performed based on PIN information, or may be performed based on software address information of the plug module, and the embodiment of the present application is not limited to this.
For example, the type of the plugging module is determined according to the level information of the first type PIN PIN corresponding to the plugging module and used for determining the type of the plugging module, a target communication interface corresponding to the plugging module can be determined from a plurality of communication interfaces of the processing device according to the type of the plugging module, and finally the switching circuit can be controlled to connect the plugging module and the target communication interface.
For another example, the type of the plugging module is determined according to the information carrying the software address information sent by the plugging module, a target communication interface corresponding to the plugging module can be determined from the plurality of communication interfaces of the processing device according to the type of the plugging module, and finally the switching circuit can be controlled to connect the plugging module and the target communication interface.
It should also be understood that the specific number of communication interfaces in the processing device, the functions, the internal connection relationship of the processing device, and the like may also be set according to actual requirements, and the embodiments of the present application are not limited thereto.
For example, in case the processing means comprise a first communication interface and a second communication interface, the first communication interface may be a communication interface related to a handheld function of the smart device and the second communication interface may be a communication interface related to a flight function of the smart device.
For another example, in a case where the current socket is capable of plugging the display module, the flash module, and the sound module, the processing device may include a first communication interface corresponding to the display module, a second communication interface corresponding to the flash module, and a third communication interface corresponding to the sound module.
Correspondingly, the single-pole double-throw switch shown in fig. 1 can also be replaced by a single-pole multi-throw switch.
That is to say, the number of the communication interfaces may be set according to the number of the types of modules that can be plugged into the current socket, and the embodiment of the present application is not limited thereto.
For another example, please refer to fig. 2, and fig. 2 shows a specific schematic diagram of an intelligent device according to an embodiment of the present application. As shown in fig. 2, the processing device in the smart device includes an insertion detection module connected to a connection portion of the socket for detecting the plugging module, and the insertion detection module is further connected to the processing module. And the insertion detection module can be further connected with the processing module, and the processing module can be further connected with the switching circuit, the first communication interface and the second communication interface respectively. Therefore, the insertion detection module can determine the type of the plugging module according to the characteristic information corresponding to the plugging module. And the processing module can generate a switching instruction for indicating switching to the target communication interface according to the type of the plugging module, and then controls the switching circuit to be switched to the target communication interface according to the switching instruction.
It should be noted that, although fig. 2 shows a process in which the processing module controls the switching circuit to perform switching, it should be understood by those skilled in the art that switching may also be performed by controlling the switching circuit through the insertion detection module, that is, after the insertion detection module detects the type of the plug module, the insertion detection module may then control the switching circuit to switch to the target communication interface, and the embodiment of the present application is not limited thereto.
It should be understood that the above-mentioned smart device is only exemplary, and those skilled in the art can make various modifications according to the above-mentioned method, and the solution after the modification is within the protection scope of the embodiments of the present application.
Referring to fig. 3, fig. 3 is a flowchart illustrating a method for identifying a module according to an embodiment of the present disclosure. The method shown in fig. 3 may be applied to a processing apparatus in a smart device, the smart device further including a switching circuit, the method including:
in step S310, the processing device obtains feature information corresponding to the plugging module.
It should be understood that the modules included in the plug module may be configured according to actual requirements, and the embodiments of the present application are not limited thereto.
For example, the plug-in module comprises at least one of the following modules: display module assembly, flash of light module, sound module, flight module and location module of making a video recording.
It should also be understood that the specific device of the display module, the specific device of the flash module, the specific device of the sound module, the specific device of the camera module, the specific device of the flight module, and the specific device of the positioning module can all be set according to actual requirements, and the embodiment of the present application is not limited thereto.
For example, the display module may be an LED display screen, an OLED display screen, or the like.
For another example, the flash module may be a flash lamp or a fill-in lamp.
For another example, the audio module may be a small microphone or a small sound box.
For another example, the camera module may be a monocular camera, or a binocular camera.
As another example, the flight module may be a wing or the like.
For another example, the positioning module can be a GPS positioning device, a beidou satellite positioning device, or the like.
It should also be understood that the specific information of the feature information may be set according to actual requirements, and the embodiments of the present application are not limited thereto.
Alternatively, the plurality of PIN legs of the docking module may be divided into two categories, wherein one category of PIN legs is used for determining the category of the docking module, and the other category of PIN legs is used for realizing the communication between the docking module and the processing device.
Correspondingly, the socket is also provided with two types of PIN PINs, the first type of PIN PIN corresponds to the previous type of PIN PIN in the plug-in module, namely the first type of PIN PIN is used for determining the type of the plug-in module, the first type of PIN PIN is the identification PIN PIN of the module and can be directly connected with the processing device, and the second type of PIN PIN corresponds to the latter type of PIN PIN in the plug-in module, namely the second type of PIN PIN is used for realizing the communication between the plug-in module and the processing device and can be connected with the switching circuit, so that the connection between the plug-in module and the target communication interface in the processing device can be realized through the switching circuit.
It should be understood that the number of PIN legs of the first type PIN leg may be set according to actual requirements, and the embodiment of the present application is not limited thereto.
For example, in the case that the socket has 10 PIN PINs and the socket is used for plugging four modules, the first PIN is 2 PIN PINs of the 10 PIN PINs, that is, 00, 01, 10, and 11 can respectively represent four different modules, the remaining 8 PIN PINs can be combined to implement communication (for example, communication is performed by communication methods such as serial port, USB, Type C, and GPIO), and the same communication method can be used with the same combined PIN.
That is to say, the number of the PIN PINs of the first type PIN PINs can be determined according to the number of the types of the plugging modules that can be plugged into the plugging interface in the embodiment of the application.
Thus, on the basis that the smart device comprises a first type PIN leg and a second type PIN leg, the processing means may obtain level information of the first type PIN leg.
Optionally, in a case that the plugging module can send the software address information carrying the plugging module to the processing device through a connection portion directly connected to the processing device in the socket, the processing device may receive the information sent by the plugging module, so that the processing device can obtain the software address information.
It should be understood that the software address information may be a software address set in a program of the plug-in module at the time of factory shipment, or may be a bit number of a software address bit, and the like.
It should be noted that, although the above description is made by taking the software address information as an example, it should be understood by those skilled in the art that the plug module may also send other information capable of identifying the plug module, such as the model of the plug module or the name of the plug module, to the processing device, and the embodiment of the present application is not limited thereto.
In step S320, the processing device determines the type of the plugging module according to the feature information corresponding to the plugging module.
It should be understood that, the specific process of determining the category of the plugging module by the processing device according to the characteristic information corresponding to the plugging module may be set according to actual requirements, and the embodiment of the present application is not limited thereto.
In order to facilitate understanding of the embodiments of the present application, the following description will be given by way of specific examples.
Optionally, in a case that the characteristic information is level information of the first type PIN, the high-low level of the first type PIN of the plugging module is set by pulling up or pulling down, so that after the plugging module is plugged into the smart device, the level of the first type PIN can be detected by the plug-in detection module in the processing device, and thus the type of the plugging module can be determined.
Optionally, in a case that the feature information is software address information of the plug-in module, different software address information may correspond to different plug-in modules, so that the processing device may determine the type of the plug-in module corresponding to the software address information according to the software address information.
In step S330, the processing device determines a target communication interface corresponding to the plug module from the plurality of communication interfaces of the processing device according to the type of the plug module.
Specifically, the communication processing device includes a plurality of communication interfaces, and each communication interface may have a plug module corresponding to a category, so that after the processing device acquires the category of the plug module, the processing device may determine a target communication interface from the plurality of communication interfaces according to a mapping relationship between the category of the plug module and the communication interfaces.
For example, in a case where the first communication interface is a communication interface related to a handheld function of the smart device and the second communication interface is a communication interface related to a flight function of the smart device, the processing device determines that the plug-in module is a flight module, and then the processing device may further confirm that the flight module belongs to the plug-in module related to the flight function. And the processing device can determine the second communication interface as the target communication interface according to the mapping relation between the plug-in module with the flight function and the second communication interface.
In step S340, the processing device controls the switching circuit to connect the plug module with the target communication interface.
Specifically, in a case where a switch (e.g., a single-pole double-throw switch or a single-pole multi-throw switch, etc.) connected to the switching circuit is in a floating state, when the target communication interface is determined, the processing device may generate a switching instruction for instructing the switch to the target communication interface, and send the switching instruction to the switching circuit, so that the switching circuit controls the switch to the target communication interface.
In addition, in the case where the switch is connected to one communication interface on the processing device, the processing device may first acquire whether the current communication interface connected to the switch and the target communication interface are the same interface. If the current communication interface and the target communication interface are the same communication interface, keeping unchanged; if the current communication interface and the target communication interface are not the same communication interface, the processing device may generate a switching instruction for instructing the switch to the target communication interface, and send the switching instruction to the switching circuit, so that the switching circuit controls the switch to switch from the current communication interface to the target communication interface.
Therefore, the embodiment of the application determines the type of the plugging module by acquiring the characteristic information corresponding to the plugging module and according to the characteristic information corresponding to the plugging module, determines the target communication interface corresponding to the plugging module from a plurality of communication interfaces of the processing device according to the type of the plugging module, and finally controls the switching circuit to connect the plugging module and the target communication interface, so that the intelligent device can realize the automatic identification of the plugging module and the automatic switching of a signal channel, the number of external plugging interfaces and internal circuits of the intelligent device can be reduced, the miniaturization of the intelligent device can be realized, and the purpose of improving the reliability of the interface can be achieved.
It should be understood that the above method for identifying a module is only exemplary, and those skilled in the art can make various changes, modifications or alterations according to the above method and fall within the protection scope of the present application.
Referring to fig. 4, fig. 4 shows a block diagram of a device 400 for identifying a module according to an embodiment of the present application, it should be understood that the device 400 corresponds to the above method embodiment and is capable of performing the steps related to the above method embodiment, and specific functions of the device 400 may be referred to the above description, and detailed descriptions are omitted here as appropriate to avoid redundancy. The device 400 includes at least one software function module that can be stored in a memory in the form of software or firmware (firmware) or solidified in an Operating System (OS) of the device 400. Specifically, the apparatus 400 is applied to a processing apparatus in a smart device capable of plugging a module, the smart device further includes a switching circuit, and the apparatus 400 includes:
an obtaining module 410, configured to obtain feature information corresponding to the plug module; the first determining module 420 is configured to determine the type of the plugging module according to the feature information corresponding to the plugging module; a second determining module 430, configured to determine, according to the type of the plugging module, a target communication interface corresponding to the plugging module from among the plurality of communication interfaces of the processing apparatus; and the control module 440 is configured to control the switching circuit to connect the plugging module with the target communication interface.
In a possible embodiment, the smart device includes a first PIN and a second PIN, where the first PIN is used to determine a type of the plug module, the second PIN is used to implement communication between the plug module and the processing device, and the obtaining module 410 is specifically used to obtain level information of the first PIN corresponding to the plug module.
In a possible embodiment, the characteristic information includes software address information of the plug module, and the obtaining module 410 is specifically configured to receive information carrying the software address information sent by the plug module.
In one possible embodiment, the plug module comprises at least one of the following modules: display module assembly, flash of light module, sound module, flight module and location module of making a video recording.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus described above may refer to the corresponding process in the foregoing method, and will not be described in too much detail herein.
Referring to fig. 5, fig. 5 is a block diagram illustrating an electronic device 500 according to an embodiment of the present disclosure. Electronic device 500 may include a processor 510, a communication interface 520, a memory 530, and at least one communication bus 540. Wherein the communication bus 540 is used for realizing direct connection communication of these components. The communication interface 520 in the embodiment of the present application is used for communicating signaling or data with other devices. Processor 510 may be an integrated circuit chip having signal processing capabilities. The Processor 510 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor 510 may be any conventional processor or the like.
The Memory 530 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory 530 stores computer readable instructions, which when executed by the processor 510, the electronic device 500 may perform the steps of the above-described method embodiments.
The electronic device 500 may further include a memory controller, an input-output unit, an audio unit, and a display unit.
The memory 530, the memory controller, the processor 510, the peripheral interface, the input/output unit, the audio unit, and the display unit are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, these elements may be electrically coupled to each other via one or more communication buses 540. Processor 510 is used to execute executable modules stored in memory 530. Also, the electronic device 500 is configured to perform the following method: acquiring characteristic information corresponding to the plug-in module; determining the category of the plugging module according to the characteristic information corresponding to the plugging module; determining a target communication interface corresponding to the plug-in module from a plurality of communication interfaces of the processing device according to the category of the plug-in module; and controlling the switching circuit to connect the plug-in module with the target communication interface.
The input and output unit is used for providing input data for a user to realize the interaction of the user and the server (or the local terminal). The input/output unit may be, but is not limited to, a mouse, a keyboard, and the like.
The audio unit provides an audio interface to the user, which may include one or more microphones, one or more speakers, and audio circuitry.
The display unit provides an interactive interface (e.g. a user interface) between the electronic device and a user or for displaying image data to a user reference. In this embodiment, the display unit may be a liquid crystal display or a touch display. In the case of a touch display, the display can be a capacitive touch screen or a resistive touch screen, which supports single-point and multi-point touch operations. The support of single-point and multi-point touch operations means that the touch display can sense touch operations simultaneously generated from one or more positions on the touch display, and the sensed touch operations are sent to the processor for calculation and processing.
It will be appreciated that the configuration shown in FIG. 5 is merely illustrative and that the electronic device 500 may include more or fewer components than shown in FIG. 5 or may have a different configuration than shown in FIG. 5. The components shown in fig. 5 may be implemented in hardware, software, or a combination thereof.
The present application also provides a storage medium having a computer program stored thereon, which, when executed by a processor, performs the method of the method embodiments.
The present application also provides a computer program product which, when run on a computer, causes the computer to perform the method of the method embodiments.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the system described above may refer to the corresponding process in the foregoing method, and will not be described in too much detail herein.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes. It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method for identifying a module, the method being applied to a processing device in a pluggable module smart device, the smart device further comprising a switching circuit, the method comprising:
acquiring characteristic information corresponding to the plug-in module;
determining the category of the plugging module according to the characteristic information corresponding to the plugging module;
determining a target communication interface corresponding to the plug-in module from a plurality of communication interfaces of the processing device according to the category of the plug-in module;
and controlling the switching circuit to connect the plug-in module with the target communication interface.
2. The method according to claim 1, wherein the smart device includes a first PIN type and a second PIN type, the first PIN type is used for determining the type of the plug-in module, the second PIN type is used for realizing communication between the plug-in module and the processing apparatus, and the acquiring feature information corresponding to the plug-in module includes:
and acquiring the level information of the first type PIN foot corresponding to the plug-in module.
3. The method according to claim 1, wherein the feature information includes software address information of the plug-in module, and the obtaining the feature information corresponding to the plug-in module includes:
and receiving the information which is sent by the plug-in module and carries the software address information.
4. A method according to any one of claims 1 to 3, wherein the plug-in modules comprise at least one of the following modules: display module assembly, flash of light module, sound module, flight module and location module of making a video recording.
5. An apparatus for identifying a module, the apparatus being applied to a processing apparatus in a smart device capable of plugging in the module, the smart device further including a switching circuit, the apparatus comprising:
the acquisition module is used for acquiring the characteristic information corresponding to the plug-in module;
the first determining module is used for determining the category of the plugging module according to the characteristic information corresponding to the plugging module;
the second determining module is used for determining a target communication interface corresponding to the plugging module from a plurality of communication interfaces of the processing device according to the category of the plugging module;
and the control module is used for controlling the switching circuit to connect the plug-in module with the target communication interface.
6. The apparatus according to claim 5, wherein the smart device includes a first PIN and a second PIN, the first PIN is used to determine a type of the plug module, the second PIN is used to implement communication between the plug module and the processing apparatus, and the obtaining module is specifically used to obtain level information of the first PIN corresponding to the plug module.
7. The apparatus according to claim 5, wherein the feature information includes software address information of the plug module, and the obtaining module is specifically configured to receive information that is sent by the plug module and carries the software address information.
8. The apparatus of any one of claims 5 to 7, wherein the plug-in module comprises at least one of the following modules: display module assembly, flash of light module, sound module, flight module and location module of making a video recording.
9. A storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, performs the method of identifying a module according to any one of claims 1-4.
10. An electronic device, characterized in that the electronic device comprises: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is operating, the machine-readable instructions when executed by the processor performing the method of identifying a module according to any one of claims 1-4.
CN202110084940.3A 2021-01-25 2021-01-25 Module identification method and device, storage medium and electronic equipment Pending CN113760804A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110084940.3A CN113760804A (en) 2021-01-25 2021-01-25 Module identification method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110084940.3A CN113760804A (en) 2021-01-25 2021-01-25 Module identification method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN113760804A true CN113760804A (en) 2021-12-07

Family

ID=78786463

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110084940.3A Pending CN113760804A (en) 2021-01-25 2021-01-25 Module identification method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113760804A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024099120A1 (en) * 2022-11-10 2024-05-16 华为技术有限公司 Distributed control method, distributed control module, and electronic device

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102169468A (en) * 2011-03-22 2011-08-31 惠州Tcl移动通信有限公司 Identification method for external module and electronic equipment using same
CN202435360U (en) * 2011-12-27 2012-09-12 珠海派诺科技股份有限公司 Automatic identification modularized equipment
CN102681807A (en) * 2011-03-15 2012-09-19 联想(北京)有限公司 Electronic equipment and interface identification method
CN203746075U (en) * 2014-01-27 2014-07-30 深圳市文鼎创数据科技有限公司 Electronic equipment and function switching circuit
CN104238396A (en) * 2013-06-18 2014-12-24 深圳市蓝韵实业有限公司 Automatic accessory recognizing system and implementation method
CN105867190A (en) * 2016-04-15 2016-08-17 北京博瑞爱飞科技发展有限公司 Interface system and interface control method of unmanned aerial vehicle
CN106411534A (en) * 2015-07-30 2017-02-15 蔡芳芳 Embedded device and system with functions of interface recognition and wireless sharing
CN106970888A (en) * 2017-03-29 2017-07-21 联想(北京)有限公司 Interface equipment and its recognition methods, device and system
CN107357543A (en) * 2017-07-05 2017-11-17 青岛海信智能商用***股份有限公司 A kind of electronic equipment and its control method of compatible polytype display module
CN109062719A (en) * 2018-07-11 2018-12-21 广州视源电子科技股份有限公司 Electronic device for equipment identification, equipment identification system and method
CN110083499A (en) * 2018-01-26 2019-08-02 名硕电脑(苏州)有限公司 Use the functional test equipment and its test method of Type-C interface
WO2020029138A1 (en) * 2018-08-08 2020-02-13 深圳市智童乐慧科技有限公司 Identification method and system for free module replacement
CN110868688A (en) * 2018-08-21 2020-03-06 沃科莱克特公司 Method, system and apparatus for identifying connected electronic devices
CN210201830U (en) * 2019-08-19 2020-03-27 合沃物联技术(南京)有限公司 Support modularization circuit of multiple wireless module

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102681807A (en) * 2011-03-15 2012-09-19 联想(北京)有限公司 Electronic equipment and interface identification method
CN102169468A (en) * 2011-03-22 2011-08-31 惠州Tcl移动通信有限公司 Identification method for external module and electronic equipment using same
CN202435360U (en) * 2011-12-27 2012-09-12 珠海派诺科技股份有限公司 Automatic identification modularized equipment
CN104238396A (en) * 2013-06-18 2014-12-24 深圳市蓝韵实业有限公司 Automatic accessory recognizing system and implementation method
CN203746075U (en) * 2014-01-27 2014-07-30 深圳市文鼎创数据科技有限公司 Electronic equipment and function switching circuit
CN106411534A (en) * 2015-07-30 2017-02-15 蔡芳芳 Embedded device and system with functions of interface recognition and wireless sharing
CN105867190A (en) * 2016-04-15 2016-08-17 北京博瑞爱飞科技发展有限公司 Interface system and interface control method of unmanned aerial vehicle
WO2017177541A1 (en) * 2016-04-15 2017-10-19 高鹏 Interface system and interface control method for unmanned aerial vehicle
CN106970888A (en) * 2017-03-29 2017-07-21 联想(北京)有限公司 Interface equipment and its recognition methods, device and system
CN107357543A (en) * 2017-07-05 2017-11-17 青岛海信智能商用***股份有限公司 A kind of electronic equipment and its control method of compatible polytype display module
CN110083499A (en) * 2018-01-26 2019-08-02 名硕电脑(苏州)有限公司 Use the functional test equipment and its test method of Type-C interface
CN109062719A (en) * 2018-07-11 2018-12-21 广州视源电子科技股份有限公司 Electronic device for equipment identification, equipment identification system and method
WO2020029138A1 (en) * 2018-08-08 2020-02-13 深圳市智童乐慧科技有限公司 Identification method and system for free module replacement
CN110868688A (en) * 2018-08-21 2020-03-06 沃科莱克特公司 Method, system and apparatus for identifying connected electronic devices
CN210201830U (en) * 2019-08-19 2020-03-27 合沃物联技术(南京)有限公司 Support modularization circuit of multiple wireless module

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
赵海盟;张文凯;谷静博;王强;沈路宁;晏磊;: "无人机载荷航拍控制***设计", 计算机应用, no. 01, pages 270 - 275 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024099120A1 (en) * 2022-11-10 2024-05-16 华为技术有限公司 Distributed control method, distributed control module, and electronic device

Similar Documents

Publication Publication Date Title
US10411426B2 (en) Connecting device and method for recognizing device
US9710255B1 (en) Updating system of firmware of complex programmable logic device and updating method thereof
US20150186152A1 (en) Sensing and assisting computing device connections
JP2006268025A (en) Display device
KR102456456B1 (en) An electronic device having a plurality of displays and control method
US10853024B2 (en) Method for providing information mapped between a plurality of inputs and electronic device for supporting the same
CN113760804A (en) Module identification method and device, storage medium and electronic equipment
CN115617166A (en) Interaction control method and device and electronic equipment
US20180373212A1 (en) Interface-control device and related method
CN109257652B (en) Configuration information switching method and device, electronic device, system and storage medium
KR102012937B1 (en) Apparatus and method for connecting an external device in a portable terminal
CN109040729B (en) Image white balance correction method and device, storage medium and terminal
KR20200101036A (en) Electronic device and method providing content associated with image to application
KR20200072727A (en) An electornic devid and a method for displaying web contents in augmented reality mode
KR20200068391A (en) Electronic device for generating video comprising character and method thereof
KR20190107901A (en) Electronic device for executing various functions based on a signal recevied from an electric pen
US20170264962A1 (en) Method, system and computer program product
CN209015704U (en) A kind of interface circuit and display equipment
JP2017509994A (en) Method and apparatus for reconfiguring connector pin assignments
US10652610B2 (en) Content providing device and power source controlling method thereof
KR20200079081A (en) Method for sharing content and electronic device thereof
CN115576457A (en) Display control method and device, augmented reality head-mounted device and medium
US9977757B2 (en) Prevented inter-integrated circuit address conflict service system and method thereof
KR20200039053A (en) Electronic device for providing cloud service and method for operating thefeof
US10140232B2 (en) Peripheral component interface (PCI) system and method for expanding PCI nodes in an information handling 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