CN108803451B - Module free replacement identification method and system - Google Patents
Module free replacement identification method and system Download PDFInfo
- Publication number
- CN108803451B CN108803451B CN201810899089.8A CN201810899089A CN108803451B CN 108803451 B CN108803451 B CN 108803451B CN 201810899089 A CN201810899089 A CN 201810899089A CN 108803451 B CN108803451 B CN 108803451B
- Authority
- CN
- China
- Prior art keywords
- controller
- electronic function
- connecting seat
- node
- function module
- 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
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0423—Input/output
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/21—Pc I-O input output
- G05B2219/21014—Interface, module with relays
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Stored Programmes (AREA)
Abstract
The invention relates to the field of module control, in particular to a method and a system for identifying free replacement of modules, which are characterized in that a connecting seat and a plurality of electronic function modules are provided, when the connecting seat is connected with the electronic function modules, a power supply module circuit supplies power to the electronic function modules, the identity identification of the electronic function modules is started, the type of the electronic function modules is judged by the connecting seat according to the identity identification information output by the identity identification, and a specific interaction mode between the connecting seat and the electronic function modules is determined by the connecting seat according to the identified type; the technical scheme provided by the invention can effectively overcome the defect that the plug-and-play and automatic identification cannot be realized in the prior art.
Description
Technical Field
The invention relates to the field of module control, in particular to a method and a system for identifying free replacement of a module.
Background
At present, electronic peripherals on the market are generally directly connected with control pins of an MCU, so that the electronic peripherals are inconvenient to replace, the program is also limited greatly, the connection control can only be carried out on preset electronic peripherals, the electronic peripherals are inconvenient to use, and the resources of the MCU are wasted. And each time the electronic peripheral is replaced, a professional person is required to change the program, so that the plug-and-play and automatic identification cannot be realized.
Disclosure of Invention
(One) solving the technical problems
Aiming at the defects existing in the prior art, the invention provides a method and a system for identifying the free replacement of a module, which can effectively overcome the defects existing in the prior art that the plug-and-play and automatic identification cannot be realized.
(II) technical scheme
In order to achieve the above purpose, the invention is realized by the following technical scheme:
The identification method for the free replacement of the module comprises the following steps:
S1, providing a connecting seat and a plurality of electronic function modules, when the connecting seat is connected with the electronic function modules, a power supply module circuit supplies power to the electronic function modules, and starting the identity recognition of the electronic function modules;
s2, the connection base judges the type of the electronic function module according to the identity identification information output by the identity identification;
And S3, determining a specific interaction mode with the electronic function module by the connection seat according to the identified type.
Preferably, the identification information in S2 is a combined identification information including at least two groups.
Preferably, the connection base in S3 opens an interaction module corresponding to the electronic function module according to the identified electronic function module.
Preferably, the specific interaction mode in S3 may be freely switched to an analog signal interaction mode, a digital signal interaction mode or other types of signal interaction modes according to different modules.
A module free replacement identification system comprises a connecting seat and a plurality of electronic function modules, and also comprises an identification for identifying the type of the electronic function module when the connecting seat is connected with the electronic function modules, and a controller for switching different specific interaction modules according to the identified module.
Preferably, the connection base further includes a plurality of universal interfaces for connecting with the electronic functional modules, which may be a socket structure.
Preferably, the connection base further comprises a transceiving transmission interface of the serial connection base.
Preferably, the power supply system further comprises a power supply module circuit, the power supply module circuit supplies power for identity recognition, the identity recognition is an ID recognition voltage division circuit, one path of the ID recognition voltage division circuit comprises a node ID1, the other path of the ID recognition voltage division circuit comprises a node ID2, and the interface on the connecting seat determines and outputs different interaction modes according to the voltages at the node ID1 and the node ID 2.
Preferably, the ID recognition voltage dividing circuit is provided with two paths, one path of ID recognition voltage dividing circuit comprises serially connected Rt1 and Rt2, one end of Rt1 is connected with the end of VOUT, one end of Rt2 is connected with GND, two ends of Rt2 are connected with CT1 in parallel, a node ID1 is arranged between Rt1 and Rt2, the other path of ID recognition voltage dividing circuit comprises serially connected Rt3 and Rt4, one end of Rt3 is connected with the end of VOUT, one end of Rt4 is connected with the end of GND, two ends of Rt4 are connected with CT2 in parallel, and a node ID2 is arranged between Rt3 and Rt 4.
Preferably, the connecting seat is provided with a magnetic connection interface and an electronic function module to realize electric connection, the ID voltage dividing circuit is connected with the controller, the ID voltage dividing circuit identifies the type of the peripheral electronic function module and outputs the type of the peripheral electronic function module to the controller, and the controller switches different interaction modes to work according to the identified type of the electronic function module.
(III) beneficial effects
Compared with the prior art, the method and the system for identifying the free replacement of the module have the following beneficial effects:
1) The magnetic attraction structure can be connected with the connecting seats PL1, PL2, PL3, PL4, PL5 and PL6, and can be connected with the universal module interface circuit through the plug-in terminal, so that the electronic function module can be replaced conveniently;
2) The electronic function module can be directly identified by means of the ID identification voltage division circuit, and identification and initialization can be automatically carried out, manual configuration is not needed, and the use of a user is greatly facilitated;
3) The pins of the controller are saved, so that the controller is multipurpose.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below. It is evident that the drawings in the following description are only some embodiments of the present invention and that other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art.
FIG. 1 is a schematic diagram of a controller according to the present invention;
FIG. 2 is a schematic diagram of a connector interface according to the present invention;
FIG. 3 is a schematic diagram of an ID identification voltage divider circuit according to the present invention;
FIG. 4 is a schematic diagram of an interface protection circuit according to the present invention;
FIG. 5 is a schematic diagram of a circuit structure of a power supply module according to the present invention;
FIG. 6 is a schematic diagram of a general module interface circuit structure according to the present invention;
fig. 7 is a schematic diagram of a key module according to an embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more clear, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It will be apparent that the described embodiments are some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The identification method for the free replacement of the module comprises the following steps:
S1, providing a connecting seat and a plurality of electronic function modules, when the connecting seat is connected with the electronic function modules, a power supply module circuit supplies power to the electronic function modules, and starting the identity recognition of the electronic function modules;
s2, the connection base judges the type of the electronic function module according to the identity identification information output by the identity identification;
And S3, determining a specific interaction mode with the electronic function module by the connection seat according to the identified type.
The identification information in S2 is a combined identification information including at least two groups.
And S3, starting an interaction module corresponding to the electronic function module by the connection seat according to the identified electronic function module.
The specific interaction mode in S3 can be freely switched into an analog signal interaction mode, a digital signal interaction mode or other types of signal interaction modes according to different modules.
A module free replacement identification system, as shown in fig. 1 to 6, comprises a connecting seat and a plurality of electronic function modules, and also comprises an identification for identifying the type of the electronic function module when the connecting seat is connected with the electronic function modules, and a controller for switching different specific interaction modules according to the identified module.
The connecting seat also comprises a plurality of universal interfaces for connecting the electronic functional modules, and the universal interfaces can be a row plug structure.
The connecting seat also comprises a receiving and transmitting interface of the serial connecting seat.
The power supply module circuit is used for supplying power for the identity recognition, the identity recognition is an ID recognition voltage division circuit, one path of ID recognition voltage division circuit comprises a node ID1, the other path of ID recognition voltage division circuit comprises a node ID2, and the interface on the connecting seat determines and outputs different interaction modes according to the voltages at the node ID1 and the node ID 2.
The ID recognition voltage dividing circuit is provided with two paths, one path of ID recognition voltage dividing circuit comprises serially connected Rt1 and Rt2, one end of Rt1 is connected with the VOUT end, one end of Rt2 is connected with GND, two ends of Rt2 are parallelly connected with CT1, a node ID1 is arranged between Rt1 and Rt2, the other path of ID recognition voltage dividing circuit comprises serially connected Rt3 and Rt4, one end of Rt3 is connected with the VOUT end, one end of Rt4 is connected with GND, two ends of Rt4 are parallelly connected with CT2, and a node ID2 is arranged between Rt3 and Rt 4.
The connecting seat is provided with a magnetic connection interface and an electronic functional module to realize electric connection, the ID voltage division circuit is connected with the controller, the ID voltage division circuit identifies the type of the peripheral electronic functional module and outputs the type of the peripheral electronic functional module to the controller, and the controller switches different interaction modes to work according to the identified type of the electronic functional module.
The power supply module circuit comprises UM1, the VIN end of UM1 is connected with a 5V power supply, the VIN end of UM1 is connected with GND through Cp1 and Dp, the VOUT end of UM1 outputs 3.3V, the VOUT end of UM1 is connected with GND through Cu1, UM1 is AP2201, cp1 is 4.7 mu F, and Cu1 is 1 mu F.
Interfaces PL1, PL2, PL3, PL4, PL5 and PL6 are arranged on the connecting seat, PL1 is connected with a controller 10 pin and a node ID1, PL2 is connected with a controller 11 pin and a node ID2, PL3 is connected with a controller 19 pin, PL4 is connected with a controller 35 pin, PL3 and PL4 output signals of different modes according to voltages at the node ID1 and the node ID2, PL5 is connected with GND, PL6 is connected with a 5V power supply, PL5 is connected with PL6 through CL1, and CL1 is 1 mu F.
Interface protection circuits are arranged on the connecting seat interfaces PL1, PL2, PL3 and PL4, PL1 is connected with GND through Dp2 and CP1, PL2 is connected with GND through Dp3 and CP2, PL3 is connected with GND through Dp4, PL4 is connected with GND through Dp1, CP1 and CP2 are 1nF, and the connecting seat interfaces PL1, PL2, PL3, PL4 and Dp are composed of voltage stabilizing diodes which are connected in reverse series, and the connecting seat interfaces PL1, PL2, PL3, PL4, PL5 and PL6 are connected with the electronic function module through a magnetic attraction structure.
The universal module interface circuit comprises a terminal strip Header 5 multiplied by 2, a terminal strip 7 pin is connected with the VOUT end, a terminal strip 3 pin is connected with a controller 15 pin, a terminal strip 4 pin is connected with a controller 14 pin, a terminal strip 5 pin is connected with a controller 18 pin, a terminal strip 6 pin is connected with a controller 45 pin, and the terminal strip Header 5 multiplied by 2 in the universal module interface circuit is connected with an electronic function module through a plug terminal.
The controller is STM32F030C8T6, and the 30 feet, the 12 feet, the 31 feet and the 13 feet of the controller are used for left and right connection signal transmission.
In the ID identification voltage division circuit, different voltages can be separated through different resistors of Rt1 and Rt2, and the voltages are output to an analog signal interface 10 pin of the controller through a node ID 1; similarly, different voltages are separated through different resistors of Rt3 and Rt4, the voltages are output to an analog signal interface 11 pin of the controller through a node ID2, and the controller identifies an accessed electronic function module through a group of unique voltages of the node ID1 and the node ID 2.
And the connecting seats PL3 and PL4, and the terminal power strip 5 pins and 6 pins output signals of different modes, such as IO signals, I2C signals, ADC signals and the like, according to the voltages at the nodes ID1 and ID 2.
The electronic function module is adsorbed on the connecting seat, the connecting seat supplies working voltage of 5V to the electronic function module, 3.3V voltage is output to the ID recognition voltage dividing circuit through the power supply module circuit, an ID voltage dividing voltage value is generated, different electronic function modules are recognized through detecting the ID voltage dividing voltage value by the controller, and the controller calls a control program corresponding to the different electronic function modules to control the data receiving and transmitting of the electronic function modules.
Fig. 7 is a typical circuit diagram of a key module, where connection base PL4 and pin 6 of the terminal strip can output an IO signal through SIG2 to control the key module.
The identification method and system for the free replacement of the module provided by the invention have the following beneficial effects:
1) The magnetic attraction structure can be connected with the connecting seats PL1, PL2, PL3, PL4, PL5 and PL6, and can be connected with the universal module interface circuit through the plug-in terminal, so that the electronic function module can be replaced conveniently;
2) The electronic function module can be directly identified by means of the ID identification voltage division circuit, and identification and initialization can be automatically carried out, manual configuration is not needed, and the use of a user is greatly facilitated;
3) The pins of the controller are saved, so that the controller is multipurpose.
The above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims (3)
1. The utility model provides a module free replacement identification system, includes connecting seat and a plurality of electronic function module, its characterized in that: the electronic function module is characterized by also comprising an identity recognition for recognizing the type of the electronic function module when the connecting seat is connected with the electronic function module; the controller is used for switching different specific interaction modules according to the modules determined by the identity recognition;
the controller is STM32F030C8T6, and the 30 feet, the 12 feet, the 31 feet and the 13 feet of the controller are used for left and right connection signal transmission;
Interfaces PL1, PL2, PL3, PL4, PL5 and PL6 are arranged on the connecting seat, PL1 is connected with a controller 10 pin and a node ID1, PL2 is connected with a controller 11 pin and a node ID2, PL3 is connected with a controller 19 pin, PL4 is connected with a controller 35 pin, PL3 and PL4 output signals of different modes according to voltages at the node ID1 and the node ID2, PL5 is connected with GND, PL6 is connected with a 5V power supply, PL5 is connected with PL6 through CL1, and CL1 is 1 mu F;
the identity recognition is a two-path ID recognition voltage-dividing circuit, wherein one path of ID recognition voltage-dividing circuit comprises serially connected Rt1 and Rt2, one end of Rt1 is connected with the VOUT end, one end of Rt2 is connected with GND, CT1 is connected in parallel at two ends of Rt2, a node ID1 is arranged between Rt1 and Rt2, the other path of ID recognition voltage-dividing circuit comprises serially connected Rt3 and Rt4, one end of Rt3 is connected with the VOUT end, one end of Rt4 is connected with GND, CT2 is connected in parallel at two ends of Rt4, and a node ID2 is arranged between Rt3 and Rt 4;
The connecting seat is provided with a magnetic connection interface and an electronic function module to realize electric connection, the ID recognition voltage division circuit is connected with the controller, the ID voltage division recognition circuit recognizes the type of the peripheral electronic function module and outputs the type of the peripheral electronic function module to the controller, the controller recognizes the accessed electronic function module through a group of unique voltages of the node ID1 and the node ID2, and the controller switches different interaction modes to work according to the recognized type of the electronic function module.
2. The module free change identification system of claim 1, wherein: the connecting seat also comprises a plurality of universal interfaces connected with the electronic functional modules, and is a row plug structure.
3. The module free change identification system of claim 1, wherein: the connecting seat also comprises a receiving and transmitting interface of the serial connecting seat.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810899089.8A CN108803451B (en) | 2018-08-08 | 2018-08-08 | Module free replacement identification method and system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810899089.8A CN108803451B (en) | 2018-08-08 | 2018-08-08 | Module free replacement identification method and system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN108803451A CN108803451A (en) | 2018-11-13 |
| CN108803451B true CN108803451B (en) | 2024-08-20 |
Family
ID=64079747
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810899089.8A Active CN108803451B (en) | 2018-08-08 | 2018-08-08 | Module free replacement identification method and system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108803451B (en) |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN202395519U (en) * | 2011-12-13 | 2012-08-22 | 常熟开关制造有限公司(原常熟开关厂) | Automatic change-over switch with module self-recognition function |
| CN208969460U (en) * | 2018-08-08 | 2019-06-11 | 深圳市智童乐慧科技有限公司 | A kind of identifying system that module is freely replaced |
Family Cites Families (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2008186213A (en) * | 2007-01-30 | 2008-08-14 | Sony Ericsson Mobilecommunications Japan Inc | Module device, module identification data output method, and mobile terminal device |
| CN101674366B (en) * | 2009-09-19 | 2012-03-28 | 惠州Tcl移动通信有限公司 | Mobile terminal USB, or charger inserting identification method and identification device thereof |
| AU2010326847A1 (en) * | 2009-12-04 | 2012-06-21 | Osram Ag | A method for controlling the operation of an electronic converter, and a corresponding electronic converter, lighting system and software product |
| TWI539391B (en) * | 2012-07-20 | 2016-06-21 | 盈科泛利股份有限公司 | System and method for electronic identification system |
| CN202737810U (en) * | 2012-08-28 | 2013-02-13 | 重庆西山科技有限公司 | Automatic micro-motor identification system |
| CN104238396A (en) * | 2013-06-18 | 2014-12-24 | 深圳市蓝韵实业有限公司 | Automatic accessory recognizing system and implementation method |
| CN103676735A (en) * | 2013-11-30 | 2014-03-26 | 许继电气股份有限公司 | An intelligent power device |
| CN104852478A (en) * | 2015-05-28 | 2015-08-19 | 天津工业大学 | Identity identification circuit |
| CN206209322U (en) * | 2016-06-20 | 2017-05-31 | 北京国电通网络技术有限公司 | A kind of smart jack |
| CN206133230U (en) * | 2016-08-28 | 2017-04-26 | 广州市上鼎计算机科技有限公司 | Removable formula multipurpose cloud intelligence domestic electric appliance |
| CN107957698B (en) * | 2017-12-01 | 2024-07-09 | 华侨大学 | Identification circuit and method for peripheral circuit of control module |
| CN207650301U (en) * | 2017-12-19 | 2018-07-24 | 深圳市英威腾电气股份有限公司 | A kind of extension card identifying system and power electronic equipment |
-
2018
- 2018-08-08 CN CN201810899089.8A patent/CN108803451B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN202395519U (en) * | 2011-12-13 | 2012-08-22 | 常熟开关制造有限公司(原常熟开关厂) | Automatic change-over switch with module self-recognition function |
| CN208969460U (en) * | 2018-08-08 | 2019-06-11 | 深圳市智童乐慧科技有限公司 | A kind of identifying system that module is freely replaced |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108803451A (en) | 2018-11-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10998737B2 (en) | Intelligent switch system | |
| CN103019991B (en) | Interface system and changing method, USB key and UART terminal | |
| CN111061667A (en) | Wire rod for realizing data transmission of any one way by one dragging of multiple wires | |
| CN111509818B (en) | Charger, data line and charging equipment | |
| CN108701106A (en) | A data transmission method and device | |
| CN109743240B (en) | Interface switching device and method for communication equipment | |
| CN106713094B (en) | 1394 data acquisition module | |
| CN108803451B (en) | Module free replacement identification method and system | |
| CN105094271A (en) | Hub control method and hub control circuit | |
| CN114865403A (en) | Quick charging system, one-to-many quick charging data line, charging management device and method | |
| CN212031656U (en) | Operational amplifier test module of integrated circuit test system | |
| CN210573287U (en) | Expansion circuit | |
| CN208969460U (en) | A kind of identifying system that module is freely replaced | |
| CN109905248B (en) | Ethernet power supply device | |
| CN103218278B (en) | Automatic detection and control device and automatic detection control method thereof | |
| CN215219002U (en) | Automatic identification circuit for OTG equipment mode | |
| CN109469972A (en) | Air conditioner outdoor unit address configuration device and control method thereof | |
| CN114168514B (en) | A communication isolation circuit and device | |
| WO2020029138A9 (en) | Identification method and system for free module replacement | |
| CN107565077B (en) | Battery pack communication circuit | |
| CN119652767B (en) | A networking and communication device, method, and storage medium for combined intelligent circuit breakers. | |
| CN213817805U (en) | POE power supply indicating device and Ethernet power supply system | |
| CN216565446U (en) | Circuit of switch | |
| CN208325119U (en) | A kind of bus control circuit, mobile unit and onboard system | |
| JP7751231B1 (en) | power supply |
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 |