CN114780162B - Device capable of adapting to multiple electronic components and electronic product capable of replacing electronic components - Google Patents

Device capable of adapting to multiple electronic components and electronic product capable of replacing electronic components Download PDF

Info

Publication number
CN114780162B
CN114780162B CN202210662861.0A CN202210662861A CN114780162B CN 114780162 B CN114780162 B CN 114780162B CN 202210662861 A CN202210662861 A CN 202210662861A CN 114780162 B CN114780162 B CN 114780162B
Authority
CN
China
Prior art keywords
module
electronic component
target
configuration information
coupled
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210662861.0A
Other languages
Chinese (zh)
Other versions
CN114780162A (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.)
Shenzhen Lemu Communication Co ltd
Original Assignee
Shenzhen Lemu Communication 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 Shenzhen Lemu Communication Co ltd filed Critical Shenzhen Lemu Communication Co ltd
Priority to CN202210662861.0A priority Critical patent/CN114780162B/en
Publication of CN114780162A publication Critical patent/CN114780162A/en
Application granted granted Critical
Publication of CN114780162B publication Critical patent/CN114780162B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D21/00Measuring or testing not otherwise provided for
    • G01D21/02Measuring two or more variables by means not covered by a single other subclass
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/76Architectures of general purpose stored program computers
    • G06F15/78Architectures of general purpose stored program computers comprising a single central processing unit
    • G06F15/7867Architectures of general purpose stored program computers comprising a single central processing unit with reconfigurable architecture
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0068Battery or charger load switching, e.g. concurrent charging and load supply

Abstract

The embodiment of the disclosure provides a device capable of adapting to a plurality of electronic components and an electronic product capable of replacing the electronic components. The apparatus includes a control module. Wherein the control module is capable of being coupled to a target electronic component of the plurality of electronic components via a patching module that is adapted to the target electronic component. The control module is configured to: in the case that the control module is coupled to the target electronic component via the transit module, configuration information of the target electronic component is acquired by means of the transit module, an object code file that fits the target electronic component is determined according to the acquired configuration information, and the target electronic component is controlled to operate by executing the object code file. An electronic product that can replace an electronic component includes: the electronic device comprises a plurality of electronic components, a device capable of adapting to the electronic components and a plurality of switching modules respectively adapted to the electronic components.

Description

Device capable of adapting to multiple electronic components and electronic product capable of replacing electronic components
Technical Field
The disclosed embodiments relate to the field of electronic technology, and in particular, to an apparatus adaptable to a plurality of electronic components and an electronic product capable of replacing the electronic components.
Background
With the popularization of electronic products, a large number of electronic products are often provided for every family. The electronic products have various types and multiple functions, such as a mobile power supply with an illumination function, a mobile power supply with a wireless charging function, a handheld wireless inflator pump, a handheld illuminating lamp, a handheld disinfection liquid spraying gun, an electric screwdriver, a handheld gas detector, a wireless vehicle-mounted dust collector and the like. These electronic products may have modules with similar functions, such as a main control module, a display module, a key module, a power supply module, and the like. The main control module stores code files, and can control other modules in the electronic product to work by executing the code files, for example, control the display module to display the operation result of the electronic product. The key module can comprise keys for receiving an operation instruction of the electronic product from a customer so that the main control module can control the corresponding operation of the electronic product according to the operation instruction. The power module can be used for providing power required by the operation of the electronic product.
Disclosure of Invention
Embodiments described herein provide an apparatus adaptable to a plurality of electronic components, a patching module, an electronic component, and an electronic product that can replace the electronic component.
According to a first aspect of the present disclosure, an apparatus adaptable to a plurality of electronic components is provided. The apparatus includes a control module. Wherein the control module is capable of being coupled to a target electronic component of the plurality of electronic components via a patching module that is adapted to the target electronic component. The control module is configured to: in the case that the control module is coupled to the target electronic component via the transit module, configuration information of the target electronic component is acquired by means of the transit module, an object code file that fits the target electronic component is determined according to the acquired configuration information, and the target electronic component is controlled to operate by executing the object code file.
In some embodiments of the present disclosure, the apparatus further comprises a storage module. Wherein the storage module is coupled to the control module. At least one code file is stored in the storage module. Each of the at least one code file is adapted to a respective electronic component of the plurality of electronic components. The control module is further configured to select a target code file from the at least one code file based on the obtained configuration information.
In some embodiments of the present disclosure, the apparatus further comprises a communication module. Wherein the communication module is coupled to the control module. The communication module is capable of communicating with an external storage device. The external storage device has stored therein a plurality of code files that are adapted to each of the plurality of electronic components. The control module is further configured to: in a case where it is determined that there is no object code file in the at least one code file, the object code file is acquired from the external storage device through the communication module and the acquired object code file is stored in the storage module.
In some embodiments of the present disclosure, the apparatus further comprises a power module. Wherein the power module is coupled to the control module. The configuration information acquired by the control module includes power supply information of the target electronic component. The control module is further configured to: and under the condition that the power supply module is coupled to the switching module, controlling the power supply module to supply power to the target electronic component through the switching module according to the power supply information.
In some embodiments of the present disclosure, a power module includes an energy storage unit, a charging circuit, and a discharging circuit. The control module is further configured to: the power supply module is controlled to store power supplied from the external power source in the energy storage unit via the charging circuit in a case where the power supply module is coupled to the external power source, and to supply power from the energy storage unit to the external device to be charged via the discharging circuit in a case where the power supply module is coupled to the external device to be charged.
In some embodiments of the disclosure, the apparatus further comprises a plurality of general purpose input output interfaces (GPIOs). The plurality of GPIOs are coupled to the control module. The plurality of GPIOs can be directly coupled to a plurality of corresponding input-output interfaces on the patching module. The control module is further configured to configure operating parameters of the plurality of GPIOs in accordance with the acquired configuration information.
In some embodiments of the disclosure, the apparatus further comprises one or more of the following modules: a display module, and a keying module. Wherein the one or more modules are coupled to the control module. The control module is further configured to control or configure the one or more modules in accordance with the acquired configuration information.
According to a second aspect of the present disclosure, a patching module is provided. The switching module is used for coupling the device capable of adapting to the plurality of electronic components and a target electronic component in the plurality of electronic components. The switching module comprises a control unit. The control unit is configured to: determining configuration information of the target electronic component in a case where the transit module is coupled to the target electronic component, and transmitting the configuration information to the device in a case where the transit module is coupled to the device, so that the device determines an object code file adapting to the target electronic component according to the configuration information, and controls the target electronic component to operate by executing the object code file.
In some embodiments of the present disclosure, the patching module further comprises: at least one first input-output interface for coupling to a target electronic component. Wherein the control unit is further configured to: the method further includes reading electrical signals of the at least one first input-output interface, determining identification information of the coupled target electronic component from the read electrical signals, and determining configuration information of the target electronic component from the identification information.
In some embodiments of the present disclosure, the patching module further comprises: at least one first input-output interface for coupling to a target electronic component. Wherein the control unit is further configured to: and communicating with the target electronic component through one or more of the at least one first input-output interface to acquire the configuration information of the target electronic component.
According to a third aspect of the present disclosure, an electronic assembly is provided. The electronic component can be coupled to a device adaptable to a plurality of electronic components via a patching module adapted thereto. The apparatus includes a control module. The electronic assembly includes a functional module. The electronic assembly is configured to: in the case where the electronic component is coupled to the control module via the relay module, configuration information of the electronic component is provided to the control module by means of the relay module. The configuration information is used to direct the control module to control the operation of the electronic assembly.
In some embodiments of the present disclosure, the configuration information includes power supply information of the electronic component.
In some embodiments of the present disclosure, the electronic assembly further comprises one or more of the following modules: the device comprises a storage module, a communication module, a power supply module, a display module and a keying module. Wherein, in the event the electronic assembly is coupled to a device, the one or more modules are coupled to the control module to enable the control module to control or configure the one or more modules in accordance with the acquired configuration information.
In some embodiments of the present disclosure, a code file for controlling the operation of the electronic component is stored in a memory module of the electronic component. The device can read a code file stored in a storage module of the electronic component under the condition that the electronic component is coupled to the device, so that a control module in the device can control the electronic component to work by executing the code file.
In some embodiments of the present disclosure, the communication module of the electronic assembly is capable of communicating with an external storage device. The external storage device may have stored therein a plurality of versions of a code file that is adapted to the electronic component. Wherein, in a case where the electronic component is coupled to the apparatus, the apparatus may control the communication module of the electronic component to communicate with the external storage device to acquire the target version of the code file and update the code file stored in the storage module with the acquired target version.
In some embodiments of the disclosure, the functional modules include one or more of the following: the device comprises a gas monitoring module, a dust detection module, a satellite communication module, an illumination module, a wireless charging module, a steam disinfection module, an infrared sensing module, an alarm module, an inflator pump module, a tire pressure detection module, an air purification module, a dust collection module, a liquid spraying module and a screwdriver module.
According to a fourth aspect of the present disclosure, an electronic product is provided in which an electronic component can be replaced. The electronic product includes: the device comprises a plurality of electronic components, a device capable of being matched with the electronic components and a plurality of switching modules respectively matched with the electronic components. Wherein a target electronic component of the plurality of electronic components is coupled to a target adapter module of the plurality of adapter modules that is adapted to the target electronic component. The target transition module is coupled to the device. The target switching module comprises a control unit. The control unit is configured to: determining configuration information for the target electronic component, and sending the configuration information to the device. The apparatus includes a control module. The control module is coupled to the target transfer module. The control module is configured to: the method comprises the steps of obtaining configuration information of a target electronic component from a target switching module, determining a target code file adapting to the target electronic component according to the obtained configuration information, and controlling the target electronic component to work by executing the target code file.
Drawings
To more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings of the embodiments will be briefly described below, it being understood that the drawings described below relate only to some embodiments of the present disclosure, and not to limit the present disclosure, wherein:
FIG. 1 is an exemplary block diagram of an electronic product that can replace electronic components in accordance with an embodiment of the present disclosure;
FIG. 2 is another exemplary block diagram of an electronic product that can replace electronic components in accordance with an embodiment of the present disclosure;
FIG. 3 is yet another exemplary block diagram of an electronic product that can replace electronic components in accordance with an embodiment of the present disclosure;
FIG. 4 is yet another exemplary block diagram of an electronic product that can replace electronic components in accordance with an embodiment of the present disclosure; and
fig. 5 is yet another exemplary block diagram of an electronic product that can replace an electronic component in accordance with an embodiment of the present disclosure.
In the figures, the last two digits of a reference number correspond to the same element. It should be noted that the elements of the drawings are schematic and not drawn to scale.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described below in detail and completely with reference to the accompanying drawings. It is to be understood that the described embodiments are only a few embodiments of the present disclosure, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the described embodiments of the disclosure without any inventive step, are also within the scope of protection of the disclosure.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the presently disclosed subject matter belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the specification and the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein. As used herein, the statement that two or more parts are "connected" or "coupled" together shall mean that the parts are joined together either directly or joined through one or more intermediate components. In addition, terms such as "first" and "second" are only used to distinguish one element (or a portion of an element) from another element (or another portion of an element).
As described above, a plurality of electronic products may have modules with similar functions, but they cannot share modules with each other, which objectively causes overlapping waste of high-value modules such as main control, display screen, key control, power supply, and the like.
Embodiments of the present disclosure provide an electronic product capable of replacing an electronic component. An electronic product according to an embodiment of the present disclosure may replace a plurality of conventional electronic products. The electronic product avoids the overlapping waste of resources by sharing one or more modules that can be commonly used by a plurality of traditional electronic products. In some embodiments of the present disclosure, the electronic product may include: the electronic device comprises a plurality of electronic components, a device which can be adapted to the electronic components, and a plurality of switching modules which are respectively adapted to the electronic components. One or more modules whose functions overlap in a plurality of conventional electronic products may be included in the above-described apparatus, and other modules may be included in a corresponding plurality of electronic components. By combining the plurality of electronic components with the device, the functions of a plurality of traditional electronic products can be realized respectively. In some embodiments of the present disclosure, the plurality of electronic components may have different functional modules. The functional module is, for example, a module for realizing a target function in a conventional electronic product. For example, the functional modules in the gas monitoring device include gas sensors, and the functional modules in the smart lighting lamp include light emitting elements. The functionality of the gas monitoring device may be achieved by combining an electronic assembly comprising a gas sensor with means for adapting the plurality of electronic assemblies. The function of the intelligent illumination lamp can be realized by combining an electronic component including a light emitting element with a device adaptable to a plurality of electronic components.
In some cases, the types or locations of the interfaces of the plurality of electronic components may be different from each other, and thus are not conveniently combined directly with the same device. In some embodiments of the present disclosure, a plurality of patching modules respectively adapted with the plurality of electronic components are employed to respectively couple the plurality of electronic components to the apparatus. In one example, the same patching module can accommodate one or more of the plurality of electronic components.
In actual use, a user may select a target electronic component among the plurality of electronic components as desired, couple the target electronic component to a transit module adapted thereto (may be referred to as a "target transit module" in the context), and couple the target electronic component to a device adaptable to the plurality of electronic components via the target transit module to implement a target function. When a new function is expected to be realized, the target electronic component and the target switching module in the electronic product are replaced to enable the electronic product to realize the expected function.
Fig. 1 illustrates an exemplary block diagram of an electronic product 100 that may replace electronic components in accordance with an embodiment of the present disclosure. In the example of fig. 1, the plurality of electronic components and the plurality of patching modules are not shown, but only the target electronic component 130 of the plurality of electronic components and the target patching module 120 of the plurality of patching modules. It will be understood by those skilled in the art that the target electronic component 130 may represent any one of a plurality of electronic components. The target patching module 120 may represent a patching module that is adapted with the any one electronic component.
As shown in fig. 1, the target electronic component 130 is coupled to the target transfer module 120. The target transition module 120 is coupled to the device 110 that can accommodate a plurality of electronic components. Since the apparatus 110 may be adapted to a plurality of electronic components, the apparatus 110 needs to operate according to the electronic components to which it is coupled. In the case where the device 110 is coupled to different electronic components, the operations it needs to perform are different. For example, where the target electronic component 130 includes a gas sensor, the device 110 needs to receive data collected by the gas sensor from the target electronic component 130. In the case where the target electronic component 130 includes a light emitting element, the apparatus 110 needs to transmit a signal to the target electronic component 130 to control the light emitting element to emit light.
In some embodiments of the present disclosure, the apparatus 110 may include a control module 111 (alternatively referred to as a master module) for controlling the apparatus 110 to operate according to the electronic components to which it is coupled. The control module 111 may be, for example, a Micro Control Unit (MCU), a real-time operating system (RTOS) platform, an intelligent operating system hardware platform, or the like. The control module 111 can be coupled to the target electronic component 130 via the target-transfer module 120. The control module 111 may be configured to: in the case where the control module 111 is coupled to the target electronic component 130 via the target transit module 120, the configuration information of the target electronic component 130 is acquired by means of the target transit module 120, an object code file that fits the target electronic component 130 is determined according to the acquired configuration information, and the target electronic component is controlled to operate by executing the object code file. Herein, the "object code file adapted to the target electronic component" refers to a code file developed or designed for the target electronic component.
Although other modules included with the apparatus 110 are not shown in the example of fig. 1, those skilled in the art will appreciate that the apparatus 110 may also include other necessary modules needed for operation.
In some embodiments of the present disclosure, the acquired configuration information may include identification information of the target electronic component 130. The object code file of the adapted target electronic component 130 also includes the identification information. Accordingly, an object code file that fits the target electronic component 130 may be determined from the acquired identification information.
In some embodiments of the present disclosure, the acquired configuration information may also include a communication standard or protocol of the target electronic component 130, the number of interfaces, the location of the interfaces, power information (power protocol, power parameters, etc.), clock frequency, and other parameters that need to be known to work with the target electronic component 130.
As described above, the control module 111 acquires the configuration information of the target electronic component 130 by means of the target transit module 120. In some embodiments of the present disclosure, the target transition module 120 may include a control unit (not shown). The control unit may be configured to: determines configuration information for the target electronic component 130 and sends the configuration information to the control module 111 of the device 110.
In some embodiments of the present disclosure, the target transit module 120 may further include: at least one first input/output interface for coupling to a target electronic component 130, and a plurality of second input/output interfaces for coupling to the apparatus 110. Each input-output interface may be configured as an input interface or an output interface as desired. Although only one interface (one line) for connecting the target patching module 120 and the target electronic component 130 is shown in fig. 1, the line is merely illustrative and does not limit the number of interfaces between the target patching module 120 and the target electronic component 130. Similarly, although only one interface (a line) for connecting the target patching module 120 with the device 110 is shown in fig. 1, the line is merely illustrative and does not limit the number of interfaces between the target patching module 120 and the device 110.
In some embodiments of the present disclosure, the device 110 may include a plurality of general purpose input output interfaces (GPIOs). The multiple GPIOs may be coupled to the control module 111. The multiple GPIOs may be located on the same surface of the device 110 so as to be able to be directly coupled with multiple second input-output interfaces on the target patching module 120. The plurality of second input/output interfaces may be located on the same surface of the target pod module 120. Some of the plurality of second input/output interfaces may be used only for pass-through signals and need not be configured by the destination switching module 120. The control module 111 is further configured to configure operating parameters of the plurality of GPIOs in accordance with the acquired configuration information. In one example, the number of second input-output interfaces on the target patching module 120 may be equal to or less than the number of GPIOs included by the device 110. Since the device 110 may be adapted to a plurality of electronic components, and the number of interfaces required to be used by each electronic component may be different, in some cases, a portion of the GPIOs included in the device 110 may not be used. This portion of the GPIO included in device 110 may be used as a backup interface for future use.
In one example, the control unit of the target transit module 120 may be further configured to: reading the electrical signals of the at least one first input-output interface, determining identification information of the coupled target electronic component 130 from the read electrical signals, and determining configuration information of the target electronic component 130 from the identification information. The input/output interface of the target electronic component 130 coupled to the first input/output interface of the target adaptor module 120 may be referred to as a "third input/output interface" in the context. The first input/output interface is coupled to a third input/output interface of a different electronic component to read different electrical characteristics (e.g., voltage, current, resistance, etc.). In one example, one electrical characteristic mapping table (which may be referred to as a "first mapping table" in the context) may be established for a plurality of electronic components. The first mapping table reflects a correspondence relationship between the read combination relationship of the electrical characteristics and the identification information of the plurality of electronic components. The identification information of the target electronic component 130 corresponding to the read combination relationship of the electrical characteristics can be looked up in the first mapping table. A second mapping table of identification information of a plurality of electronic components and configuration information thereof may be stored in the target transit module 120. The target forwarding module 120 may look up the configuration information of the target electronic component 130 according to the identification information of the target electronic component 130 in the second mapping table.
In another example, the control unit of the target transit module 120 is further configured to: communicate with the target electronic component 130 through one or more of the at least one first input-output interface to obtain configuration information for the target electronic component 130. In this case, the target electronic component 130 may include a micro control unit. The control unit of the target-patching module 120 may communicate with the micro-control unit of the target electronic component 130 to obtain configuration information of the target electronic component 130. Alternatively, the target electronic component 130 may include a memory module, such as an electrically erasable programmable read-only memory (EEPROM) or a flash memory (flash), etc. In which configuration information of the target electronic component 130 is stored. When the target patching module 120 is coupled with the target electronic component 130, one or more first input-output interfaces (which may be configured as input interfaces herein) may be coupled to the output interface of the storage module. In this way, the target transit module 120 may read the configuration information stored in the memory module of the target electronic component 130 through the one or more first input-output interfaces.
In the example of fig. 1, the target electronic component 130 includes a functional module 131. The functional module 131 may be coupled to the third input/output interface. In some embodiments of the present disclosure, functional modules 131 may include one or more of the following modules: the device comprises a gas monitoring module, a dust detection module, a satellite communication module, an illumination module, a wireless charging module, a steam disinfection module, an infrared sensing module, an alarm module, an inflator pump module, a tire pressure detection module, an air purification module, a dust collection module, a liquid spraying module and a screwdriver module.
Although other modules included by the target electronic component 130 are not shown in the example of fig. 1, one skilled in the art will appreciate that the target electronic component 130 may also include other necessary modules needed for operation.
As described above, the control module 111 determines an object code file to fit the target electronic component 130 according to the acquired configuration information. In some embodiments of the present disclosure, the object code file that is adapted to the target electronic component 130 may be stored in a storage module of the target electronic component 130. The control module 111 may determine how to read the object code file in the storage module of the target electronic component 130 according to the acquired configuration information. In this case, the memory module of the target electronic component 130 corresponds to an external memory device of the apparatus 110. The control module 111 may execute an object code file in a storage module of the target electronic component 130 to control the operation of the target electronic component 130.
Alternatively, in some embodiments of the present disclosure, the object code file for adapting the target electronic component may be stored in a device adaptable to a plurality of electronic components. The apparatus that can accommodate a plurality of electronic components can include a memory module. An object code file that adapts the target electronic component may be stored in the memory module. Fig. 2 shows an exemplary block diagram of an electronic product 200 having the above arrangement. In the example of fig. 2, the apparatus 210, which may adapt a plurality of electronic components, includes a control module 211 and a storage module 212. The memory module 212 is coupled to the control module 211. The storage module 212 stores at least one code file therein. Each of the at least one code file is adapted to a respective electronic component of the plurality of electronic components. For example, a first code file fits a first electronic component, a second code file fits a second electronic component, a third code file fits a third electronic component, and so on. The control module 211 is further configured to select an object code file from the at least one code file according to the obtained configuration information.
In one example, the storage module 212 has stored therein a first code file that adapts the first electronic component and a second code file that adapts the second electronic component. In the case where the configuration information acquired by the control module 211 indicates that the target electronic component is the second electronic component, the control module 211 selects the second code file as the target code file.
In the example of fig. 2, the target electronic component 230 includes a function module 231 and a power module 232. The power module 232 may provide power to the electronic product 200. Specifically, the power module 232 may be coupled to the function module 231 to provide power to the function module 231. The power module 232 may also be coupled to the target pod 220 to provide power to the target pod 220. The target transition module 220 may transfer power received from the power module 232 to the device 210 to which it is coupled. Thus, in the example of fig. 2, the target-pod module 220 and the apparatus 210 that can accommodate multiple electronic components may not be provided with a power module. However, those skilled in the art will appreciate that one or both of the target patching module 220 and the device 210 may be provided with a power module, regardless of whether the target electronic component 230 includes the power module 232. In the case where the target electronic component 230 does not include the power module 232, at least one of the target adapter module 220 and the device 210 needs to be provided with the power module.
In some embodiments of the present disclosure, in a case that the target electronic component 230 is not coupled to the target transit module 220 and the device 210, the power supply module 232 may not provide external power, so as to avoid a security accident caused by a mis-connection of a reserved power supply interface of the target electronic component 230.
Fig. 3 illustrates yet another exemplary block diagram of an electronic product 300 that may replace electronic components in accordance with an embodiment of the disclosure. In the example of fig. 3, an apparatus 310 that can adapt a plurality of electronic components includes: a control module 311, a storage module 312, and a communication module 313. Wherein, the storage module 312 and the communication module 313 are respectively coupled to the control module 311. The communication module 313 is capable of communicating with an external storage device (not shown). For example, a wireless radio sub-module (e.g., a bluetooth sub-module, a WiFi sub-module, a 4G sub-module, a 5G sub-module, etc.) may be arranged in the communication module 313 to wirelessly communicate with an external storage device (e.g., a cloud storage node, etc.). Alternatively, the communication module 313 may also be in wired connection with an external storage device. The external storage device has stored therein a plurality of code files that are adapted to each of the plurality of electronic components. The control module 311 is further configured to: in the case where it is determined that there is no object code file among the at least one code file stored in the storage module 312, the object code file is acquired from the external storage device through the communication module 313 and the acquired object code file is stored in the storage module 312.
In one example, the storage module 312 has stored therein a first code file that adapts a first electronic component and a second code file that adapts a second electronic component. In the case where the configuration information acquired by the control module 311 indicates that the target electronic component is the third electronic component, the control module 311 may acquire a third code file adapted to the third electronic component from an external storage device through the communication module 313 and store the third code file in the storage module 312. In the case where the storage space of the storage module 312 is insufficient to store the first, second, and third code files at the same time, the third code file may be stored in a storage area of the first or second code file to replace the first or second code file.
In the example of fig. 3, the target electronic component 330 includes a function module 331 and a power supply module 332. Similar to the example of fig. 2, the power module 332 may provide power to the electronic product 300.
Fig. 4 illustrates yet another exemplary block diagram of an electronic product 400 that may replace electronic components in accordance with an embodiment of the disclosure. In the example of fig. 4, an apparatus 410 that can adapt a plurality of electronic components includes: a control module 411, a storage module 412, a communication module 413, and a power module 414. The storage module 412, the communication module 413, and the power module 414 are respectively coupled to the control module 411. The power module 414 is coupled to the target transition module 420 and may provide power to the target transition module 420. In the example of fig. 4, the target electronic component 430 includes the function module 431 but does not include the power supply module. The power module 414 in the device 410 may provide power to the target electronic component 430 via the target pod module 420 under the control of the control module 411. In some embodiments of the present disclosure, the configuration information acquired by the control module 411 includes power supply information of the target electronic component. The control module 411 is further configured to: and controlling the power supply module 414 to supply power to the target electronic component 430 through the target switching module 420 according to the power supply information. In one example, the control module 411 may determine parameters for providing power to the target electronic component 430, such as a power supply protocol (SPI, I2C, PD, etc.), a rated voltage value, a rated current value, and the like, according to the acquired power supply information. In the context of the present disclosure, in operations performed "via the target transit module," the target transit module simply passes through commands, instructions or signals that are not controlled or processed by the target transit module.
In some embodiments of the present disclosure, although not shown, the power module 414 may include an energy storage unit, a charging circuit, and a discharging circuit. The control module 411 is further configured to: the power supply module 414 is controlled to store power supplied from the external power source in the energy storage unit via the charging circuit in a case where the power supply module 414 is coupled to the external power source, and the power supply module 414 is controlled to supply power from the energy storage unit to the external device to be charged via the discharging circuit in a case where the power supply module 414 is coupled to the external device to be charged. In this case, the device 410 may be used as a mobile power source regardless of whether the device 410 is coupled to the target transit module 420 and the target electronic component 430.
In some embodiments of the present disclosure, the apparatus 410 may be in a low power consumption mode before the apparatus 410 is coupled to other components (the target transfer module 420, or an external device to be charged) so as to be able to quickly start operating when coupled to other components.
As an alternative to the examples of fig. 2-4, an apparatus that can accommodate multiple electronic components may include only a control module and a power module. Other modules included in the apparatus of fig. 2-4 (e.g., a memory module and/or a communication module, etc.) may be provided in the target electronic component. The communication module of the target electronic component is capable of communicating with an external storage device. Multiple versions of a code file that fits the target electronic component may be stored in the external storage device. Wherein, in case the target electronic component is coupled to an apparatus adaptable to a plurality of electronic components, the apparatus may control the communication module of the target electronic component to communicate with an external storage device to acquire a target version of the target code file and update the code file stored in the storage module of the target electronic component with the acquired target version.
Fig. 5 illustrates yet another exemplary block diagram of an electronic product 500 that may replace electronic components in accordance with an embodiment of the disclosure. In the example of fig. 5, an apparatus 510 adaptable to a plurality of electronic components includes: a control module 511, a memory module 512, a communication module 513, a power module 514, a display module 515, and a key module 516. The display module 515 may include, for example, a display screen. The key module 516 may include, for example, one or more keys. Coupled to the control module 511 are a memory module 512, a communication module 513, a power module 514, a display module 515, and a keying module 516. The control module 511 may be configured to control or configure one or more of the storage module 512, the communication module 513, the power module 514, the display module 515, and the key module 516 according to the acquired configuration information. For example, the control module 511 may control the display module 515 to display the acquired configuration information, battery information (battery percentage, low power reminder, etc.), operation data of the function module, and the like. The control module 511 may configure the functions of the respective keys in the key module according to the acquired configuration information.
As an alternative to the example of fig. 5, the apparatus that can adapt the plurality of electronic components may not include a display module and/or a keying module. Alternatively, the target electronic component may include a display module and/or a keying module. The control module of the apparatus adaptable to the plurality of electronic components controls the display of the display module of the target electronic component and/or receives a key input from the key module of the target electronic component via the target relay module.
In summary, the electronic product according to the embodiment of the disclosure can implement module reuse, thereby saving hardware resources. Moreover, the electronic assembly according to the embodiment of the disclosure can realize plug and play, is convenient and quick and is simple to operate after being combined with a device which can be adapted to a plurality of electronic assemblies through the switching module. According to the electronic product disclosed by the embodiment of the disclosure, when the functions are expanded, only the switching module and the matched electronic component need to be replaced, and the expandability is strong. In addition, the electronic product according to the embodiment of the disclosure supports the update of the code file, so that the later version upgrade and maintenance are facilitated.
As used herein and in the appended claims, the singular forms of words include the plural and vice versa, unless the context clearly dictates otherwise. Thus, when reference is made to the singular, it is generally intended to include the plural of the corresponding term. Similarly, the terms "comprising" and "including" are to be construed as being inclusive rather than exclusive. Likewise, the terms "include" and "or" should be construed as inclusive unless such an interpretation is explicitly prohibited herein. Where the term "example" is used herein, particularly when it comes after a set of terms, it is merely exemplary and illustrative and should not be considered exclusive or extensive.
Further aspects and ranges of adaptability will become apparent from the description provided herein. It should be understood that various aspects of the present application may be implemented alone or in combination with one or more other aspects. It should also be understood that the description and specific examples are intended for purposes of illustration only and are not intended to limit the scope of the present disclosure.
Several embodiments of the present disclosure have been described in detail above, but it is apparent that various modifications and variations can be made to the embodiments of the present disclosure by those skilled in the art without departing from the spirit and scope of the present disclosure. The scope of the disclosure is defined by the appended claims.

Claims (12)

1. An apparatus adaptable to a plurality of electronic components, the apparatus comprising: a control module and a plurality of general purpose input/output interfaces GPIO coupled to the control module,
wherein the control module is coupleable to a target electronic component of the plurality of electronic components via a patching module that is adapted to the target electronic component;
the target electronic component includes: a functional module and at least one third input-output interface coupled to the functional module;
the patching module comprises: a control unit, a plurality of second input-output interfaces for directly coupling the plurality of GPIOs of the apparatus, and at least one first input-output interface for coupling the at least one third input-output interface of the target electronic component;
the control unit of the patching module is configured to: reading electrical signals of the at least one first input-output interface with the patching module coupled to the target electronic component, determining identification information of the target electronic component according to the read electrical signals, and determining configuration information of the target electronic component according to the identification information; or, communicating with the target electronic component through one or more of the at least one first input-output interface to obtain the configuration information of the target electronic component;
the control module is configured to: obtaining the configuration information of the target electronic component from the transit module in a case where the control module is coupled to the target electronic component via the transit module, determining an object code file that fits the target electronic component according to the obtained configuration information, and controlling the target electronic component to operate by executing the object code file;
wherein the configuration information comprises: identification information of the target electronic component, a communication standard or protocol, a number of interfaces, a location of an interface, and a clock frequency;
the functional modules include one or more of the following:
the device comprises a gas monitoring module, a dust detection module, a satellite communication module, a lighting module, a wireless charging module, a steam disinfection module, an infrared sensing module, an alarm module, an inflator pump module, a tire pressure detection module, an air purification module, a dust absorption module, a liquid spraying module and a screwdriver module.
2. The apparatus of claim 1, further comprising a storage module coupled to the control module, the storage module having stored therein at least one code file, each of the at least one code file adapting to a respective electronic component of the plurality of electronic components, the control module further configured to select the target code file from the at least one code file according to the obtained configuration information.
3. The apparatus of claim 2, further comprising a communication module, wherein the communication module is coupled to the control module, the communication module capable of communicating with an external storage device having stored therein a plurality of code files that adapt each of the plurality of electronic components, the control module further configured to: in a case where it is determined that the object code file does not exist in the at least one code file, acquiring the object code file from the external storage device through the communication module and storing the acquired object code file in the storage module.
4. The apparatus of any one of claims 1-3, further comprising a power module, wherein the power module is coupled to the control module, wherein the configuration information obtained by the control module further comprises power supply information for the target electronic component, and wherein the control module is further configured to: controlling the power supply module to supply power to the target electronic component via the switching module according to the power supply information when the power supply module is coupled to the switching module.
5. The apparatus of claim 4, wherein the power module comprises an energy storage unit, a charging circuit, and a discharging circuit, the control module further configured to: control the power supply module to store power provided by an external power source in the energy storage unit via the charging circuit if the power supply module is coupled to the external power source, and control the power supply module to provide power from the energy storage unit to an external device-to-be-charged via the discharging circuit if the power supply module is coupled to the external device-to-be-charged.
6. The apparatus of any one of claims 1 to 3 and 5, wherein the control module is further configured to configure operating parameters of the plurality of GPIOs in accordance with the obtained configuration information.
7. The apparatus of any one of claims 1 to 3 and 5, further comprising one or more of the following: a display module and a key control module,
wherein the one or more modules are coupled to the control module, the control module further configured to control or configure the one or more modules in accordance with the obtained configuration information.
8. A patching module for coupling a device adaptable to a plurality of electronic components with a target one of the plurality of electronic components,
wherein the apparatus comprises: the device comprises a control module and a plurality of general purpose input and output interfaces GPIOs coupled to the control module;
the target electronic component includes: a functional module and at least one third input-output interface coupled to the functional module;
the patching module comprises: a control unit, a plurality of second input-output interfaces for directly coupling the plurality of GPIOs of the device, and at least one first input-output interface for coupling the at least one third input-output interface of the target electronic component;
the control unit is configured to: determining configuration information of the target electronic component in case that the transit module is coupled to the target electronic component, and transmitting the configuration information to the device in case that the transit module is coupled to the device, so that the device determines an object code file adapting to the target electronic component according to the configuration information, and controls the target electronic component to work by executing the object code file;
wherein determining the configuration information of the target electronic component comprises:
reading electrical signals of the at least one first input-output interface, determining identification information of the target electronic component according to the read electrical signals, and determining configuration information of the target electronic component according to the identification information; alternatively, the first and second electrodes may be,
communicating with the target electronic component through one or more of the at least one first input-output interface to obtain the configuration information of the target electronic component;
wherein the configuration information comprises: identification information of the target electronic component, a communication standard or protocol, a number of interfaces, a location of an interface, and a clock frequency;
the functional modules include one or more of the following:
the device comprises a gas monitoring module, a dust detection module, a satellite communication module, a lighting module, a wireless charging module, a steam disinfection module, an infrared sensing module, an alarm module, an inflator pump module, a tire pressure detection module, an air purification module, a dust absorption module, a liquid spraying module and a screwdriver module.
9. An electronic component capable of being coupled to a device adaptable to a plurality of electronic components via a patching module adapted thereto,
wherein the apparatus comprises: the system comprises a control module and a plurality of general purpose input/output interfaces GPIOs coupled to the control module;
the electronic component includes: a functional module and at least one third input-output interface coupled to the functional module;
the patching module comprises: a control unit, a plurality of second input-output interfaces for directly coupling the plurality of GPIOs of the apparatus, and at least one first input-output interface for coupling the at least one third input-output interface of the electronic component;
the control unit of the patching module is configured to: reading electrical signals of the at least one first input-output interface with the patching module coupled to the electronic component, determining identification information of the electronic component according to the read electrical signals, and determining configuration information of the electronic component according to the identification information; or, communicating with the electronic component through one or more of the at least one first input-output interface to obtain the configuration information of the electronic component;
the electronic component is configured to: providing configuration information of the electronic component from the transit module to the control module, the configuration information being used to direct the control module to control the operation of the electronic component, if the electronic component is coupled to the control module via the transit module;
wherein the configuration information comprises: identification information of the electronic component, a communication standard or protocol, the number of interfaces, the location of the interfaces, and a clock frequency;
the functional modules include one or more of the following:
the device comprises a gas monitoring module, a dust detection module, a satellite communication module, a lighting module, a wireless charging module, a steam disinfection module, an infrared sensing module, an alarm module, an inflator pump module, a tire pressure detection module, an air purification module, a dust absorption module, a liquid spraying module and a screwdriver module.
10. The electronic component of claim 9, wherein the configuration information further comprises power supply information for the electronic component.
11. The electronic assembly of claim 9, further comprising one or more of the following modules: a storage module, a communication module, a power module, a display module, and a key module,
wherein, with the electronic assembly coupled to the device, the one or more modules are coupled to the control module to enable the control module to control or configure the one or more modules in accordance with the acquired configuration information.
12. An electronic product in which electronic components can be replaced, comprising: a plurality of electronic components, a device adaptable to the plurality of electronic components, and a plurality of patching modules respectively adaptable to the plurality of electronic components,
wherein a target electronic component of the plurality of electronic components is coupled to a target patching module of the plurality of patching modules that is adapted to the target electronic component;
wherein the target transition module is coupled to the device;
wherein the apparatus comprises: the target switching module comprises a control module and a plurality of general purpose input/output (GPIO) interfaces coupled to the control module, wherein the control module is coupled to the target switching module;
the target electronic component includes: a functional module and at least one third input-output interface coupled to the functional module;
the target switching module includes: a control unit, a plurality of second input-output interfaces directly coupled to the plurality of GPIOs of the device, and at least one first input-output interface coupled to the at least one third input-output interface of the target electronic component;
the control unit is configured to: determining configuration information for the target electronic component and sending the configuration information to the device;
wherein determining the configuration information of the target electronic component comprises:
reading electrical signals of the at least one first input-output interface, determining identification information of the target electronic component according to the read electrical signals, and determining configuration information of the target electronic component according to the identification information; alternatively, the first and second electrodes may be,
communicating with the target electronic component through one or more of the at least one first input-output interface to obtain the configuration information of the target electronic component;
wherein the control module is configured to: acquiring configuration information of the target electronic component from the target switching module, determining a target code file adapted to the target electronic component according to the acquired configuration information, and controlling the target electronic component to work by executing the target code file;
wherein the configuration information comprises: identification information of the target electronic component, a communication standard or protocol, the number of interfaces, the location of the interfaces, and a clock frequency;
the functional modules include one or more of the following:
the device comprises a gas monitoring module, a dust detection module, a satellite communication module, a lighting module, a wireless charging module, a steam disinfection module, an infrared sensing module, an alarm module, an inflator pump module, a tire pressure detection module, an air purification module, a dust absorption module, a liquid spraying module and a screwdriver module.
CN202210662861.0A 2022-06-13 2022-06-13 Device capable of adapting to multiple electronic components and electronic product capable of replacing electronic components Active CN114780162B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210662861.0A CN114780162B (en) 2022-06-13 2022-06-13 Device capable of adapting to multiple electronic components and electronic product capable of replacing electronic components

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210662861.0A CN114780162B (en) 2022-06-13 2022-06-13 Device capable of adapting to multiple electronic components and electronic product capable of replacing electronic components

Publications (2)

Publication Number Publication Date
CN114780162A CN114780162A (en) 2022-07-22
CN114780162B true CN114780162B (en) 2022-10-04

Family

ID=82422092

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210662861.0A Active CN114780162B (en) 2022-06-13 2022-06-13 Device capable of adapting to multiple electronic components and electronic product capable of replacing electronic components

Country Status (1)

Country Link
CN (1) CN114780162B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009104367A (en) * 2007-10-23 2009-05-14 Ricoh Elemex Corp Usb adapter and usb system
CN112506571A (en) * 2020-10-29 2021-03-16 浙江吉利控股集团有限公司 Drive adaptation method and device for road end sensor in vehicle-road cooperation, storage medium and equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7051149B2 (en) * 2002-08-29 2006-05-23 Lite-On Technology Corporation Method for transceiving non-USB device by an adapter and apparatus using the same
US20080244147A1 (en) * 2007-03-29 2008-10-02 Inventec Corporation Device Recognition Circuit and the Method of Recognition
US9311127B2 (en) * 2011-12-16 2016-04-12 International Business Machines Corporation Managing configuration and system operations of a shared virtualized input/output adapter as virtual peripheral component interconnect root to single function hierarchies
JP2016220174A (en) * 2015-05-26 2016-12-22 株式会社東芝 Home appliance control method and home appliance controller
CN114415566A (en) * 2022-01-18 2022-04-29 西安交通大学 Modular power electronic device platform

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009104367A (en) * 2007-10-23 2009-05-14 Ricoh Elemex Corp Usb adapter and usb system
CN112506571A (en) * 2020-10-29 2021-03-16 浙江吉利控股集团有限公司 Drive adaptation method and device for road end sensor in vehicle-road cooperation, storage medium and equipment

Also Published As

Publication number Publication date
CN114780162A (en) 2022-07-22

Similar Documents

Publication Publication Date Title
US11094969B2 (en) Battery pack and data transmission method between the battery pack and electrical device
KR102137049B1 (en) The light device, light device system, and the registration method for the light device
US20120306621A1 (en) Lighting control network configuration with rfid devices
US20230127497A1 (en) Electrical device and program update method thereof
US20070109142A1 (en) Photoelectric controller for electric street lighting
US8749095B2 (en) Uninterruptible power supply system and power management method thereof suitable for audio visual apparatus
US20070132405A1 (en) General operating system
WO2009121177A1 (en) Portable alarm configuration/update tool
US7277930B2 (en) Switching/lighting correlation system
US11496816B2 (en) Telematics road ready system including a bridge integrator unit
CN114780162B (en) Device capable of adapting to multiple electronic components and electronic product capable of replacing electronic components
CN218938944U (en) Device capable of adapting to multiple electronic components, switching module, electronic components and electronic product
CN219811186U (en) Electronic component, device capable of adapting to multiple electronic components and electronic product
CN115114204A (en) Switching module and device capable of adapting to multiple electronic components
CN115098184A (en) Electronic assembly and device capable of adapting to multiple electronic assemblies
CN217388740U (en) Sensor data transmission device, sensor system and intelligent home system
WO2019244751A1 (en) Device control method, control apparatus, and system
CN1983977A (en) Method and system for realizing long-distance loading monoboard fastener
CN114552740A (en) Plug-and-play intelligent switching system and control method thereof
CN219872366U (en) Device capable of adapting to multiple electronic components, switching module, electronic components and electronic product
CN114780161B (en) Device capable of adapting to multiple electronic components and electronic product capable of replacing electronic components
JP7041849B2 (en) State collection system
JPH10341246A (en) Polling method and terminal equipment
CN218938945U (en) Electronic component, device capable of adapting to multiple electronic components and electronic product
EP3843508A1 (en) Emergency lighting 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