CN106294255A - A kind of synchronized communication method for Intelligent hardware and communication system - Google Patents
A kind of synchronized communication method for Intelligent hardware and communication system Download PDFInfo
- Publication number
- CN106294255A CN106294255A CN201610631309.XA CN201610631309A CN106294255A CN 106294255 A CN106294255 A CN 106294255A CN 201610631309 A CN201610631309 A CN 201610631309A CN 106294255 A CN106294255 A CN 106294255A
- Authority
- CN
- China
- Prior art keywords
- unit
- usb plug
- main control
- module
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0042—Universal serial bus [USB]
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Systems (AREA)
Abstract
The present invention relates to chip communication field, a kind of synchronized communication method for Intelligent hardware and communication system.Asynchronous communication method is used to cause each USB plug-in unit cannot the defect of stable operation for existing Intelligent hardware, it is provided that a kind of synchronized communication method for Intelligent hardware and communication system.The present invention is on the basis of the main control module of the commonly used asynchronous communication means of existing Intelligent hardware, how leaded molded by setting up, and support N number of USB plug-in unit with 2N+2 on it idle GPIO pin correspondence extension, specifically main control module, power module, detection module be directly connected to how leaded molded after, recycle how leaded molded in idle GPIO chip pin extension support USB plug-in unit, and then by the quantity of more GPIO pin flexible expansion USB plug-in unit the USB plug-in unit stable operation that guarantees extension, expand the function of Intelligent hardware, meet the diversified demand of user.
Description
Technical field
The present invention relates to chip communication field, a kind of synchronized communication method for Intelligent hardware and communication system
Uniting, described communication means can be supported the connected multiple USB plug-in units of Intelligent hardware extension and be in synchronous working running status, and then
USB plug-in unit is made to keep stable operation.
Background technology
Present intelligent electric appliance gets more and more, and the Intelligent hardware of use has had good experience and higher
Hardware performance, but be short of in autgmentability, pass through usb mode development hardware function, wherein USB plug-in unit
Mouth has four contacts, respectively D+ line, D-line, VBUS line and earth terminal, and has detected whether USB plug-in unit by the earthing of casing
Insert.The function of existing Intelligent hardware and extensibility compare limitation, otherwise can only provide USB interface to other equipment, as given
Mobile phone charges;Because price factor uses the asynchronous communication module of low cost as the main control module of Intelligent hardware, work as intelligence
Can want by the way of asynchronous communication and time two or more USB plug-in unit carries out data communication, owing to asynchronous communication causes respectively by hardware
Individual USB plug-in unit cannot accurately control serial ports clock and produce, and then produces error code when serial communication so that by asynchronous communication side
Each USB plug-in unit that formula communicates with main control module all cannot stable operation work, therefore described Intelligent hardware can only support and
One equipment carries out data communication, and function singleness, efficiency are low.Although there being now employing asynchronous communication module to realize synchronous communication,
Needing to increase the most extra chip or circuit, structure complexity cost is high.
Summary of the invention
The technical assignment of the technical problem to be solved in the present invention and proposition is to overcome existing Intelligent hardware to use asynchronous communication
Method causes each USB plug-in unit cannot the defect of stable operation, it is provided that a kind of synchronized communication method for Intelligent hardware and logical
Communication system, described synchronized communication method can make the Intelligent hardware communication behavior of existing asynchronous communication means main control module extend
For synchronous communication, allow Intelligent hardware extend by the form of exploitation USB plug-in unit and to extend other functions various and be possibly realized, institute
State Intelligent hardware while using low cost asynchronous communication means main control module, maximize the function of extension Intelligent hardware, meet
The multiple demand of user, expands to the synchronous communication of one-to-many equipment room by the asynchronous communication of equipment room one to one.
The technical solution adopted in the present invention: a kind of synchronized communication method for Intelligent hardware, comprises the following steps:
1) GPIO pin of the main control module of Intelligent hardware is divided into data pin and clock pins, described data pin is set to
The data/address bus of main control module, is set to the clock bus of main control module by described clock pins;
2), after each USB plug-in unit electrification reset, a globally unique address is registered to main control module, and D-line and D+ line are appointed
One is connected on the data/address bus of main control module as data wire, and another line is connected to the clock of main control module as clock line
In bus;
3) by main control module, GPIO data register and clock register are controlled, after described USB plug-in unit powers on, just
Keeping the state of transceiving data, the state of described transceiving data will not change because of the clock signal on clock line;Work as master control
When module needs to send data to a certain USB plug-in unit, on main control module tranmitting data register signal to clock line, simultaneously in clock signal
Control under data signal according to set rule be sent on data wire;Described USB plug-in unit receives data, then according to receipts
To data determine whether to carry out next step action.
During work, owing to GPIO data register and clock register are controlled by main control module, on each USB plug-in unit
After electricity, just it is constantly in the state of transceiving data, can't change either with or without clock signal because of on clock line;Work as master control
Chip need to send data to some USB plug-in unit or accept from some USB plug-in unit data time, main control module will be sent out
Send clock signal to clock line, the most also can send out data signal according to the rule appointed
Deliver on data wire or under control of the clock signal according to the rule appointed, use least significant bit data preferential or
The rule of highest significant position high priority data reads the data from certain USB plug-in unit from data/address bus;Receive from master control mould
Block sends over each USB plug-in unit of data, after receiving the data further according to the data received determine whether to into
Next step action of row.
Because all registered USB plug-in units can get the communication number issued from Intelligent hardware from data/address bus
According to, thus the main control module that each USB plug-in unit parses Intelligent hardware from data want communication destination address, then and oneself
Registered mailing address compare, if USB plug-in unit finds that two mailing addresses are consistent, then resolve paid-in communication
Data carry out respective handling, if it find that two mailing addresses are inconsistent, then abandon paid-in communication data, do not make any place
Reason.In the clock bus of the main control module being all connected into Intelligent hardware due to the clock line of all registered USB plug-in units, therefore can
Enough ensure that all registered USB plug-in units are monitored, the data that send and receive the main control module from Intelligent hardware are the most all protected
Hold consistent, do not result in the communications because clock sequence is inconsistent, and produce monitoring, the error code that sends and receive data is asked
Topic, make each USB plug-in unit monitor at the data/address bus of the main control module of Intelligent hardware, send and receive the course of action of data all with
Intelligent hardware keeps the running status of synchronous working.Wherein, D-and D+ line, connection data/address bus or clock bus can be exchanged,
But once it is determined that, same linking rule all followed by the most all USB plug-in units.
As improving further and supplementing technique scheme, the present invention uses following technical measures: in step 3)
Described set rule be least significant bit data preferentially or the rule of highest significant position high priority data.Least significant bit data
(LSB, Least Significant Bit) is preferential and highest significant position data (MSB, Most Significant Bit) are preferential
Rule is existing common data processing method.
A kind of communication system realizing synchronous communication, including main control end and controlled terminal, described main control end includes electrical connection
Main control module, detection module, power module, described main control module include main control chip, data register and supporting data/address bus,
Clock register and supporting clock bus and supporting many pins chip;Described detection module includes detecting each USB plug-in unit
The detection chip whether inserted and supporting many pins chip, described power module includes power supply chip and supporting many pins core
Sheet;Described controlled terminal includes that multiple USB plug-in unit, described USB plug-in unit have the sensor corresponding with expanded function, it is characterized in that institute
State main control module, power module and detection module and connect same how leaded molded by respective idle GPIO pin, described many
Leaded molded at least one many pins chip that includes, how leaded molded slotting by 2N+2 the GPIO pin N number of USB of extension thereon
Part, wherein N is natural number, and a how leaded molded upper independent GPIO pin is used as the D-line of all USB plug-in unit mouths to be accessed, even
Receiving on described data/address bus, the data wire as USB plug-in unit is connected on described data/address bus;The most leaded molded upper list
Solely GPIO pin is used as the D+ line of all USB plug-in unit mouths to be accessed, is connected on described clock bus, as USB plug-in unit time
Clock line is connected on described clock bus;The most leaded molded N number of GPIO pin does N number of USB plug-in unit mouth to be accessed respectively
VBUS line, the USB plug-in unit that described VBUS line is corresponding by how leaded molded connection power module is powered, and individually connects one
GPIO pin is powered for corresponding USB plug-in unit on power module;Use whether N number of GPIO pin inserts as detection USB plug-in unit
Enter the detection line of Intelligent hardware, detect in real time and whether have USB plug-in unit to insert, if detecting new on N number of USB plug-in unit mouth
If USB plug-in unit inserts, power, if USB having been detected to newly inserted USB plug-in unit by corresponding VBUS line the most immediately
If plug-in unit is extracted, given the USB plug-in unit mouth power-off extracted the most immediately by corresponding VBUS line.
The present invention is on the basis of the main control module of the commonly used asynchronous communication means of existing Intelligent hardware, many by setting up
Leaded molded, and the mode supporting N number of USB plug-in unit, specifically master control is extended by 2N+2 on it idle GPIO pin correspondence
Module, power module, detection module be directly connected to how leaded molded after, recycle how leaded molded in idle GPIO chip draw
USB plug-in unit is supported in foot extension, and then by the quantity of more GPIO pin flexible expansion USB plug-in unit, expands Intelligent hardware
Function, meets the various different demands of user;GPIO pin not, be increased by how leaded molded in many pins chip-count
Amount, until meeting.The present invention supports USB plug-in unit by the GPIO pin extension in how leaded molded, it is adaptable to intelligence is hard
The smart jack that part is the most common, and other needs expand to the same of one-to-many equipment room the asynchronous communication of equipment room one to one
The application and development scene of step communication.On the premise of the main control chip of Intelligent hardware is constant, uses the present invention program, use master control mould
Block, power module, detection module and how leaded molded in idle GPIO pin use organically combination, can maximized extend
The function of Intelligent hardware, meets the various different demands of user, as by Intelligent hardware monitoring PM2.5 and warning, monitoring air
In gas content and smoke particle density in warning, monitoring air and warning, monitoring aerial temperature and humidity and warning, support remote
Process control infrared remote control equipment, support Remote radio-frequency apparatus etc..
Described detection module, power module and how leaded molded three modules can be integrated on main control module;Or inspection
Survey module, power module and how leaded molded be single module respectively, being connected with main control module by control line is communicated;
Or in detection module, power module and three modules of many pins, it is the most integrated that module is combined into a bigger module two-by-two
On main control module, remaining separate modular is connected with main control module by control line and communicates;Or detection module, power supply
Module and how leaded molded be integrated into a whole after be integrated in again on main control module.Detection module, power module and many pins
Module can use multiple flexible combination form according to practical situation, facilitates follow-up connection and manufactures encapsulation, by detection module, electricity
Source module is connected with main control module with how leaded molded standalone module of making respectively, uses flexibly, maintains easily;By three modules
Middle combination of two is integrated on main control module, remains a module and individually connects main control module, and such integrated level is high, it is simple to the later stage
Assembling, production efficiency is high.
Another kind realizes the communication system of synchronous communication, and including main control end and controlled terminal, described main control end includes electrical connection
Main control module, detection module, power module, described main control module includes that main control chip, data register and supporting data are total
Line, clock register and supporting clock bus and supporting many pins chip;Described detection module includes detecting each USB
Detection chip that whether plug-in unit inserts and supporting many pins chip, described power module includes power supply chip and supporting drawing more
Foot chip;Described controlled terminal includes that multiple USB plug-in unit, described USB plug-in unit have the sensor corresponding with expanded function, its feature
Being that described main control module, power module and detection module extend N number of USB plug-in unit by 2N+2 GPIO pin, wherein N is nature
Number, one independent GPIO pin of main control module is used as the D-line of all USB plug-in unit mouths to be accessed, is connected to described data/address bus
On, the data wire as USB plug-in unit is connected on described data/address bus;On main control module, another independent GPIO pin is used as institute
There is the D+ line of USB plug-in unit mouth to be accessed, be connected on described clock bus, when being connected to described as the clock line of USB plug-in unit
In clock bus;On power module, N number of GPIO pin makees the VBUS line of N number of USB plug-in unit mouth to be accessed respectively, and described VBUS line connects
The USB plug-in unit that power module is corresponding is powered, and it is corresponding that each USB plug-in unit individually connects a GPIO pin on power module
USB plug-in unit is powered;On detection module, N number of GPIO pin makees the detection line of N number of USB plug-in unit mouth to be accessed respectively, and detection is N number of in real time
Whether there is USB plug-in unit to insert on USB plug-in unit mouth, detecting that new USB plug-in unit inserts if had, the most immediately by corresponding
VBUS line power to newly inserted USB plug-in unit, if having detected that USB plug-in unit is extracted, the most immediately by corresponding
The USB plug-in unit mouth power-off extracted given by VBUS line.It is each that this communication system directly utilizes main control module, detection module and power module
From GPIO pin extension connect USB plug-in unit.
The idle pin that two GPIO pin are main control chip on described main control module, or be independently arranged in main control module
Many pins chip on idle pin.USB plug-in unit, wherein GPIO are supported in the GPIO pin extension made full use of on main control module
Pin can come from the idle pin on the idle pin of main control chip or many pins chip of the interior setting of main control module.
Accompanying drawing explanation
Communication system schematic diagram described in Fig. 1: embodiment 1.
Fig. 2: main control module uses idle GPIO pin extension to support USB plug-in unit overall schematic.
Fig. 3: main control module uses idle GPIO pin extension to support USB plug-in unit partial schematic diagram.
Fig. 4: power module uses idle GPIO pin extension to support USB plug-in unit overall schematic.
Fig. 5: power module uses idle GPIO pin extension to support USB plug-in unit partial schematic diagram.
Fig. 6: detection module uses idle GPIO pin extension to support USB plug-in unit overall schematic.
Fig. 7: detection module uses idle GPIO pin extension to support USB plug-in unit partial schematic diagram.
Communication system schematic diagram described in Fig. 8: embodiment 2.
Detailed description of the invention
The present invention is described further with detailed description of the invention in explanation below in conjunction with the accompanying drawings.
A kind of synchronized communication method for Intelligent hardware, comprises the following steps:
1) GPIO pin of the main control module of Intelligent hardware is divided into data pin and clock pins, described data pin is set to
The data/address bus of main control module, is set to the clock bus of main control module by described clock pins;
2), after each USB plug-in unit electrification reset, a globally unique address is registered to main control module, and D-line and D+ line are appointed
One is connected on the data/address bus of main control module as data wire, and another line is connected to the clock of main control module as clock line
In bus;
3) by main control module, GPIO data register and clock register are controlled, after each USB plug-in unit powers on, just
It is constantly in the state of transceiving data, can't change with and without clock signal because of on clock line;Work as main control chip
Need to send data to some USB plug-in unit or accept from some USB plug-in unit data time, when main control chip will send
Clock signal, on clock bus, the most also can use data signal according to the rule appointed
Least significant bit data are preferential or the rule of highest significant position high priority data, send data on data/address bus or at clock
According to the rule appointed under the control of signal, use least significant bit data preferential or the rule of highest significant position high priority data
From data/address bus, then read the data from certain USB plug-in unit;Receive each USB sending over data from main control module
Plug-in unit, determines whether to carry out next step action further according to the data received after receiving the data.In second step
D+ line can also be exchanged with D-line and use, specifically D+ line is connected to as data wire the data/address bus of described main control module
On, D-line is connected on the clock bus of described main control module as clock line.
Embodiment 1 is as shown in Fig. 1~7, and a kind of communication system realizing synchronous communication, including main control end and controlled terminal, institute
State main control end and include the main control module of electrical connection, detection module, power module and how leaded molded, wherein detection module, power supply
Module and how leaded molded three modules are single module, and being connected with main control module by control line is communicated, three
Be designed with some many pins chips in module, described main control module include main control chip, data register and supporting data/address bus,
Clock register and supporting clock bus and supporting many pins chip;Described detection module includes detecting each USB plug-in unit
The detection chip whether inserted and supporting many pins chip, described power module includes power supply chip and supporting many pins core
Sheet, described how leaded molded includes some many pins chips;Described controlled terminal includes that multiple USB plug-in unit, described USB plug-in unit have
The sensor corresponding with expanded function.Additionally, detection module, power module and how leaded molded three modules can also be integrated in
On main control module;Or in three modules, each two module is combined into a bigger module, and is integrated on main control module,
Remain a single module to be connected with main control module communicate by control line;Or three modules are integrated into a whole
Module after, then be integrated on main control module.
Described main control module, power module and detection module are by respective idle GPIO pin and how leaded molded phase
On company, how leaded molded logical too small amount of control line and main control module, power module and detection module, corresponding GPIO pin connects
Interacting, this is conventional prior art;It is the most leaded molded by 2N+2 the GPIO pin N number of USB plug-in unit of extension thereon,
Wherein N is natural number, and a how leaded molded upper independent GPIO pin is used as the D-line of all USB plug-in unit mouths to be accessed, connects
On described data/address bus, the data wire as USB plug-in unit is connected on described data/address bus;The most leaded molded upper one individually
GPIO pin is used as the D+ line of all USB plug-in unit mouths to be accessed, is connected on described clock bus, as the clock of USB plug-in unit
Line is connected on described clock bus;The most leaded molded N number of GPIO pin is the VBUS of N number of USB plug-in unit mouth to be accessed respectively
Line, the USB plug-in unit that described VBUS line is corresponding by how leaded molded connection power module is powered, and individually connects a GPIO and draws
Foot is powered for corresponding USB plug-in unit on power module;Use whether N number of GPIO pin inserts intelligence as detection USB plug-in unit
Whether the detection line of hardware, detect in real time on N number of USB plug-in unit mouth and have USB plug-in unit to insert, and detects that new USB inserts if had
If part inserts, power, if USB plug-in unit having been detected to newly inserted USB plug-in unit by corresponding VBUS line the most immediately
If extracting, given the USB plug-in unit mouth power-off extracted the most immediately by corresponding VBUS line.
As shown in Figures 2 and 3, described main control module includes main control chip, data register and supporting data/address bus, clock
Depositor and supporting clock bus and supporting many pins chip, major function is to process various information and control, Yi Jihe
Each has between the USB plug-in unit of various sensor and carries out data communication, by the internal many pins chip arranged of main control module
On idle GPIO pin extension, i.e. data register and clock register are controlled by main control chip, when main control chip need
When sending data to some USB plug-in unit or accept from the data of some USB plug-in unit, main control chip will tranmitting data register
Signal, on clock bus, the most also can use data signal according to the rule appointed
Low order high priority data or the rule of highest significant position high priority data, send data to believe on data/address bus or at clock
Number control under according to the rule appointed, use least significant bit data preferential or the rule of highest significant position high priority data
The data from certain USB plug-in unit are read from data/address bus.
As shown in Figure 4 and Figure 5, described power module includes power supply chip and supporting many pins chip, and major function is
Being extended by the idle GPIO pin on the internal many pins chip arranged of power module, described pin is to be accessed with each
The VBUS line of USB plug-in unit mouth is connected, and as the VBUS line of each USB plug-in unit mouth received on Intelligent hardware, comprises to controlled terminal
The USB plug-in unit of various sensors provides power supply.
As shown in Figure 6 and Figure 7, described detection module includes detecting detection chip that whether each USB plug-in unit insert and joins
Many pins chip of set, major function is to be expanded by the idle GPIO pin on the internal many pins chip arranged of detection module
Whether exhibition, have new USB plug-in unit to insert, if detecting new on the N number of USB plug-in unit mouth on detection Intelligent hardware in real time
If USB plug-in unit inserts, power, if USB having been detected to newly inserted USB plug-in unit by corresponding VBUS line the most immediately
If plug-in unit is extracted, given the USB plug-in unit mouth power-off extracted the most immediately by corresponding VBUS line.
As shown in Figure 8, a kind of communication system realizing synchronous communication, including main control end and controlled terminal, described master for embodiment 2
Control end includes the main control module of electrical connection, detection module, power module, and described main control module includes main control chip, data register
Device and supporting data/address bus, clock register and supporting clock bus and supporting many pins chip;Described detection module bag
Including and detect detection chip and the supporting many pins chip whether each USB plug-in unit inserts, described power module includes power supply core
Sheet and supporting many pins chip;Described controlled terminal includes multiple USB plug-in unit, and described USB plug-in unit has corresponding with expanded function
Sensor, described main control module, power module and detection module are by 2N+2 GPIO pin N number of USB plug-in unit of extension, wherein
N is natural number, and one independent GPIO pin of main control module is used as the D-line of all USB plug-in unit mouths to be accessed, is connected to described number
According in bus, the data wire as USB plug-in unit is connected on described data/address bus;Another independent GPIO pin on main control module
Being used as the D+ line of all USB plug-in unit mouths to be accessed, be connected on described clock bus, the clock line as USB plug-in unit is connected to
On described clock bus;On power module, N number of GPIO pin is the VBUS line of N number of USB plug-in unit mouth to be accessed, described VBUS respectively
Line connects the USB plug-in unit that power module is corresponding and powers, and each USB plug-in unit individually connects a GPIO pin on power module and is
Corresponding USB plug-in unit is powered;On detection module, N number of GPIO pin makees the detection line of N number of USB plug-in unit mouth to be accessed respectively, in real time
Whether N number of USB plug-in unit mouth on have USB plug-in unit insert, detect that new USB plug-in unit inserts, the most immediately if had if detecting
Powering to newly inserted USB plug-in unit by corresponding VBUS line, if having detected that USB plug-in unit is extracted, leading to the most immediately
Cross corresponding VBUS line to the USB plug-in unit mouth power-off extracted.
The present embodiment directly uses the idle GPIO pin on main control module, power module and detection module to carry out USB and inserts
Part extends, the wherein idle pin that two GPIO pin are main control chip on main control module, or is independently arranged in main control module
Many pins chip on idle pin, 2N GPIO pin is N number of idle on the many pins chip arranged in power module
The N number of idle pin on many pins chip arranged in pin and detection module.
Claims (9)
1., for a synchronized communication method for Intelligent hardware, comprise the following steps:
1) GPIO pin of the main control module of Intelligent hardware is divided into data pin and clock pins, described data pin is set to
The data/address bus of main control module, is set to the clock bus of main control module by described clock pins;
2), after each USB plug-in unit electrification reset, a globally unique address is registered to main control module, and D-line and D+ line are appointed
One is connected on the data/address bus of main control module as data wire, and another line is connected to the clock of main control module as clock line
In bus;
3) by main control module, GPIO data register and clock register are controlled, after described USB plug-in unit powers on, just
Keeping the state of transceiving data, the state of described transceiving data will not change because of the clock signal on clock line;Work as master control
When module needs to send data to a certain USB plug-in unit, on main control module tranmitting data register signal to clock line, simultaneously in clock signal
Control under data signal according to set rule be sent on data wire;Described USB plug-in unit receives data, then according to receipts
To data determine whether to carry out next step action.
2. the synchronized communication method for Intelligent hardware, it is characterised in that the rule that sets described in step 3) has as minimum
Effect bit data is preferential or the rule of highest significant position high priority data.
3. realize a communication system for synchronous communication described in claim 1, including main control end and controlled terminal, described main control end bag
Including the main control module of electrical connection, detection module, power module, described main control module includes main control chip, data register and joins
Sets of data bus, clock register and supporting clock bus and supporting many pins chip;Described detection module includes detection
Detection chip that whether each USB plug-in unit inserts and supporting many pins chip, described power module includes power supply chip and joins
Many pins chip of set;Described controlled terminal includes that multiple USB plug-in unit, described USB plug-in unit have the sensing corresponding with expanded function
Device, is characterized in that described main control module, power module and detection module connect same drawing by respective idle GPIO pin more
Foot module, described how leaded molded at least one many pins chip that includes, how leaded molded is drawn by 2N+2 GPIO thereon
Foot extends N number of USB plug-in unit, and wherein N is natural number, and a how leaded molded upper independent GPIO pin is used as all USB to be accessed
The D-line of plug-in unit mouth, is connected on described data/address bus, and the data wire as USB plug-in unit is connected on described data/address bus;Many
A leaded molded upper independent GPIO pin is used as the D+ line of all USB plug-in unit mouths to be accessed, is connected on described clock bus,
Clock line as USB plug-in unit is connected on described clock bus;The most leaded molded N number of GPIO pin is done N number of waiting respectively
Entering the VBUS line of USB plug-in unit mouth, the USB plug-in unit that described VBUS line is corresponding by how leaded molded connection power module is powered,
Individually connect a GPIO pin to power to power module for corresponding USB plug-in unit;Use N number of GPIO pin as detection
Whether whether USB plug-in unit inserts the detection line of Intelligent hardware, detect in real time and have USB plug-in unit to insert on N number of USB plug-in unit mouth, if
Have if detecting that new USB plug-in unit inserts, power to newly inserted USB plug-in unit by corresponding VBUS line the most immediately, as
If fruit has detected that USB plug-in unit is extracted, given the USB plug-in unit mouth power-off extracted the most immediately by corresponding VBUS line.
Communication system the most according to claim 3, is characterized in that described detection module, power module and how leaded molded three
Individual module is integrated on main control module.
Communication system the most according to claim 3, is characterized in that described detection module, power module and how leaded molded point
Being not standalone module, being connected with main control module by control line is communicated.
Communication system the most according to claim 3, is characterized in that described detection module, power module and how leaded molded three
In individual module, module is integrated on main control module after being combined into a bigger module two-by-two again, and remaining separate modular is led to
Cross control line to be connected with main control module and communicate.
Communication system the most according to claim 3, is characterized in that described detection module, power module and many pin mold agllutination
It is integrated in again on main control module after being combined into an entirety.
8. realize a communication system for synchronous communication described in claim 1, including main control end and controlled terminal, described main control end bag
Including the main control module of electrical connection, detection module, power module, described main control module includes main control chip, data register and joins
Sets of data bus, clock register and supporting clock bus and supporting many pins chip;Described detection module includes detection
Detection chip that whether each USB plug-in unit inserts and supporting many pins chip, described power module includes power supply chip and joins
Many pins chip of set;Described controlled terminal includes that multiple USB plug-in unit, described USB plug-in unit have the sensing corresponding with expanded function
Device, is characterized in that described main control module, power module and detection module extend N number of USB plug-in unit by 2N+2 GPIO pin, its
Middle N is natural number, and one independent GPIO pin of main control module is used as the D-line of all USB plug-in unit mouths to be accessed, is connected to described
On data/address bus, the data wire as USB plug-in unit is connected on described data/address bus;On main control module, another independent GPIO draws
Foot is used as the D+ line of all USB plug-in unit mouths to be accessed, is connected on described clock bus, and the clock line as USB plug-in unit connects
On described clock bus;On power module, N number of GPIO pin makees the VBUS line of N number of USB plug-in unit mouth to be accessed respectively, described
VBUS line connects the USB plug-in unit that power module is corresponding and powers, and each USB plug-in unit individually connects a GPIO on power module and draws
The USB plug-in unit that foot is corresponding is powered;On detection module, N number of GPIO pin makees the detection line of N number of USB plug-in unit mouth to be accessed respectively,
Whether have USB plug-in unit insert, detect that new USB plug-in unit inserts, then if had if detecting in real time on N number of USB plug-in unit mouth
Powering to newly inserted USB plug-in unit by corresponding VBUS line immediately, if having detected that USB plug-in unit is extracted, then standing
The USB plug-in unit mouth power-off extracted i.e. is given by corresponding VBUS line.
Communication system the most according to claim 8, is characterized in that two GPIO pin on described main control module are master control
Idle pin on the idle pin of chip, or the many pins chip being independently arranged in main control module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610631309.XA CN106294255A (en) | 2016-08-04 | 2016-08-04 | A kind of synchronized communication method for Intelligent hardware and communication system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610631309.XA CN106294255A (en) | 2016-08-04 | 2016-08-04 | A kind of synchronized communication method for Intelligent hardware and communication system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106294255A true CN106294255A (en) | 2017-01-04 |
Family
ID=57664900
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610631309.XA Pending CN106294255A (en) | 2016-08-04 | 2016-08-04 | A kind of synchronized communication method for Intelligent hardware and communication system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106294255A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080183928A1 (en) * | 2007-01-29 | 2008-07-31 | Microsemi Corp. - Analog Mixed Signal Group Ltd. | Addressable Serial Peripheral Interface |
CN102088386A (en) * | 2011-01-20 | 2011-06-08 | 中北大学 | Universal serial bus (USB) for master-slave interconnection module of circuit system |
CN202189357U (en) * | 2011-08-19 | 2012-04-11 | 南京宁翔电子科技有限公司 | Fiscal processor expanding control device for one-to-more USB interface |
CN103412838A (en) * | 2013-07-26 | 2013-11-27 | 华为技术有限公司 | Expansion system, communication method, address configuration method, equipment and device |
-
2016
- 2016-08-04 CN CN201610631309.XA patent/CN106294255A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080183928A1 (en) * | 2007-01-29 | 2008-07-31 | Microsemi Corp. - Analog Mixed Signal Group Ltd. | Addressable Serial Peripheral Interface |
CN102088386A (en) * | 2011-01-20 | 2011-06-08 | 中北大学 | Universal serial bus (USB) for master-slave interconnection module of circuit system |
CN202189357U (en) * | 2011-08-19 | 2012-04-11 | 南京宁翔电子科技有限公司 | Fiscal processor expanding control device for one-to-more USB interface |
CN103412838A (en) * | 2013-07-26 | 2013-11-27 | 华为技术有限公司 | Expansion system, communication method, address configuration method, equipment and device |
Non-Patent Citations (1)
Title |
---|
白凤娥等: "基于C8051F020单片机***的USB扩展", 《微计算机信息》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105335311A (en) | Portable electronic device and power management method | |
CN104063348B (en) | Realize the device and method of compatible USB communications and voice communication | |
CN103530250A (en) | Portable electronic device and accessory device thereof, and operating method for the portable electronic device | |
CN107025191A (en) | Electronic installation connects system | |
CN202548576U (en) | Intelligent data control terminal | |
CN205809692U (en) | New automobile electronic test circuitry automatic configuration box | |
CN103532804A (en) | Double-Ethernet networking server provided with multi-serial ports | |
CN106338938B (en) | A kind of backplane bus communication addressing system and method | |
CN112822174A (en) | Intelligent data acquisition module, data acquisition box and data acquisition method | |
CN106294255A (en) | A kind of synchronized communication method for Intelligent hardware and communication system | |
CN214333820U (en) | Navigation equipment structure convenient to maintenance is replaced | |
CN106584862B (en) | A kind of the 3D printing WIFI control system and its control method of built-in Web service | |
CN211018381U (en) | Multi-power supply system for self-service equipment | |
CN203445909U (en) | Intercom terminal parameter configuration system | |
CN104268109A (en) | Data interface communication method and device | |
CN206480870U (en) | Connector | |
CN204129732U (en) | Based on the board self-adaptation equipment of satellite time transfer machine frame system | |
CN102403744B (en) | Mobile phone charging circuit and charging method | |
CN107025151A (en) | Electronic installation connects system | |
CN206441154U (en) | A kind of management system of control device and universal serial bus device | |
CN201869223U (en) | Machine to machine terminal, communication module and data sending device | |
CN111447270A (en) | Data forwarding middleware for Internet of things | |
CN215865310U (en) | Extensible portable detecting instrument | |
TWM561823U (en) | Serial signal transmission control module | |
CN210143009U (en) | Fixed satellite communication equipment main control board |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
AD01 | Patent right deemed abandoned | ||
AD01 | Patent right deemed abandoned |
Effective date of abandoning: 20200228 |