CN106850368A - A kind of control method of repeater and its data transfer - Google Patents
A kind of control method of repeater and its data transfer Download PDFInfo
- Publication number
- CN106850368A CN106850368A CN201611214555.1A CN201611214555A CN106850368A CN 106850368 A CN106850368 A CN 106850368A CN 201611214555 A CN201611214555 A CN 201611214555A CN 106850368 A CN106850368 A CN 106850368A
- Authority
- CN
- China
- Prior art keywords
- transceiver
- microcontroller
- information
- baud rate
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B3/00—Line transmission systems
- H04B3/02—Details
- H04B3/36—Repeater circuits
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/40006—Architecture of a communication node
- H04L12/40013—Details regarding a bus controller
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L2012/40208—Bus networks characterized by the use of a particular bus standard
- H04L2012/40215—Controller Area Network CAN
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention discloses a kind of repeater, including one first CAN transceiver, the CAN for corresponding connection carries out the transmission of data or information;One second CAN transceiver, the CAN for corresponding connection carries out the transmission of data or information;One first toggle switch, for configuring an id information;One second toggle switch, for configuring one first baud rate, the second baud rate;One microcontroller, first CAN transceiver, the second CAN transceiver, the first toggle switch, the second toggle switch are all connected to the microcontroller.The invention also discloses a kind of control method of REPEATER DATA transmission.
Description
Technical field
The present invention relates to communicate, the field such as fire-fighting, the control method of particularly a kind of repeater and its data transfer.
Background technology
In firefighting monitoring system, power supply electric energy is one of main monitoring index.And often have thousands of in a building building
Detection node up to a hundred, so we want to carry out Centralized Monitoring to the data of each nodes, it is necessary to one kind is supported distributed
Control and the fieldbus of real-time control, each node is stringed together, and carries out the collection and transmission of data.CAN is accorded with just
Close this demand.
CAN is a kind of serial communication bus of multiple host pattern, with excellent stability, real-time, telecommunication
The characteristic such as ability and superpower hardware CRC error correction;The application of CAN technology is no longer only limitted to automobile industry, but extends
The industries such as machinery, weaving, control are arrived, and has been acknowledged as one of most promising fieldbus.Yet with being limited by CAN
Transceiver, CAN communication distance and nodes number are respectively restricted within 10 km and 110.But in slightly larger type
CAN bus system in, this is often inadequate, is at this moment accomplished by expanding CAN network with CAN repeater
Exhibition.
When CAN extends, it is necessary to using CAN repeaters.And existing CAN repeater designs are added using MCU mostly
The dual chip or multi-chip solution of CAN controller.In processing data or information transfer process, realize that there are different bauds
When the CAN data of rate or information transmission transfer, the load of its processor is larger, it is difficult to meet large-scale CAN network
The high efficiency of transmission of data or information.
The content of the invention
Regarding to the issue above, the invention provides a kind of repeater, one or more technology in the prior art is solved
Problem, meets the data of CAN network or the high efficiency of transmission of information.
The technical scheme is that:A kind of repeater, including
One first CAN transceiver, the CAN for corresponding connection carries out the transmission of data or information;
One second CAN transceiver, the CAN for corresponding connection carries out the transmission of data or information;
One first toggle switch, for configuring an id information;
One second toggle switch, for configuring one first baud rate, the second baud rate and one the oneth BOOT patterns, one second
BOOT patterns;
One microcontroller, first CAN transceiver, the second CAN transceiver, the first toggle switch, the second toggle switch connect
It is connected to the microcontroller;
The microcontroller is used to read id information from first toggle switch;And for the id information to be set in this
After the id information of device;And for reading first baud rate and the second baud rate and described from second toggle switch
First BOOT patterns and the 2nd BOOT patterns;And for by first baud rate, a BOOT pattern configurations to described the
Second baud rate, the 2nd BOOT pattern configurations are given second CAN transceiver by one CAN transceiver;And for controlling
The reception and transmission of first CAN transceiver, the second CAN transceiver data or information.
In an embodiment of the present invention, the repeater also includes a clock module, is connected to the microcontroller, described
Clock module is used to set delay time;The microcontroller is additionally operable to define and store a reception interrupt identification;And be used for
The divide ratio of first CAN transceiver, the second CAN transceiver is configured according to first baud rate, the second baud rate;
Data frame standard id information for the id information to be configured to the first CAN transceiver and the second CAN transceiver.
First toggle switch includes 8 dial-ups, and the id information scope of its configuration is 0 ~ 255.
Second toggle switch includes 8 dial-ups, wherein, front two dial-up is used to configure the level of BOOT0 and BOOT1
State, to configure the starting region of program after the microcontroller reset;3rd to the 5th dial-up is used to configure first wave
Special rate, the 6th to the 8th is used to configure the second baud rate.
In an embodiment of the present invention, the repeater also includes
One SWD modules, are connected to the microcontroller, and the SWD modules are used for the more newly downloaded debugging of program;
One usb interface module, is connected to the microcontroller;
One RS485 transceivers, are connected to the microcontroller;
One indicating lamp module, is connected to the microcontroller.
The invention also discloses a kind of data transfer control method of repeater.
Realizing the technical scheme of above-mentioned purpose is:A kind of data transfer control method of repeater, comprises the following steps,
S1)First toggle switch is set manually, an id information is configured;Second toggle switch, configuration one are set manually
First baud rate, the second baud rate and and chip reset after program starting region;
S2)Start repeater, the microcontroller reads the id information from first toggle switch, and by the id information
It is configured to the id information of the repeater;
S3)First CAN transceiver, the second CAN transceiver described in Initialize installation:Comprise the following steps,
S31)The microcontroller reads first baud rate, the second baud rate and BOOT0 from second toggle switch
With the storage battery state of the setting of BOOT1, and first baud rate is allocated to first CAN transceiver, by described second
Baud rate is allocated to second CAN transceiver;
S4)The reception and transmission of the first CAN transceiver, the second CAN transceiver data or information described in the microprocessor control.
In an embodiment of the present invention, the step S2)In it is further comprising the steps of,
S21)Initialize installation clock module, indicating lamp module and GPIO modules, including when the time delay of the clock module is set
Between;
S22)Define the reception interrupt identification of the microcontroller.
In an embodiment of the present invention, the step S3)Including further comprising the steps of:
S32)The microcontroller configures first CAN transceiver, second according to first baud rate, the second baud rate
The divide ratio of CAN transceiver;
S33)The id information is configured to the microcontroller data frame mark of the first CAN transceiver and the second CAN transceiver
Quasi- id information.
In an embodiment of the present invention, the step S4)It is further comprising the steps of;
S41)First CAN transceiver described in the microprocessor control receives the data or information of connected CAN;
S42)The microcontroller monitors first CAN transceiver and reads the value for receiving interrupt identification in real time;
S43)Whether the value for judging to receive interrupt identification is 1, if 1, then into step S44);If not 1, then into step
S45);
S44)If the value for receiving interrupt identification is 1, represents that now first CAN transceiver is received and interrupt, the microcontroller
The data or information that first CAN transceiver is received are packed according to the communication protocol of second CAN transceiver, control
The CAN that extremely be connected with second CAN transceiver for the data or information transmission of the packing by second CAN transceiver,
Meanwhile, the value of the reception interrupt identification is assigned to 0 by the microcontroller;
S45)If the value for receiving interrupt identification is 0, represents that now first CAN transceiver is received and do not interrupt, then the micro-control
Device processed triggers clock module, the clock module timing delay time;
S46)After delay time is reached, return to step S41).
In an embodiment of the present invention, the step S46)It is further comprising the steps of,
S461)The cycle-index of the counter records data transmit-receive of the clock module;
S462)The microcontroller judges whether the cycle-index reaches the set upper limit;If being not reaching to, return to step
S41);If reaching, into step S463)
S463)The microcontroller records the data transmit-receive circulation upper limit, while the value of the counter is assigned to 0, and again
Return to step S41).
It is an advantage of the invention that:The control method of repeater of the invention and its data transfer, microcontroller is used
STM32F105 is internally integrated double bxCAN controllers, supports CAN protocol V2.0A and V2.0B, and baud rate reaches as high as 1Mb/s, has
There are 3 to send mailbox and 23 grades of FIFO of depth, can come what efficient process were largely received with the load of minimum processor
Message, and by the setting of the first toggle switch and the second toggle switch, can be according to real-time Transmission distance, control in time is passed
Defeated speed, to reach the transmission of efficient data or information, by first transceiver and the frequency dividing control of second transceiver, reaches
The substep of data or information transfer is carried out, and can effectively improve efficiency of transmission and the effective standard for ensureing data or information transfer
True property, by timing module, can realize the counting of each transmission, be conducive to inquiry and the statistics of data.
Brief description of the drawings
The invention will be further described with reference to the accompanying drawings and examples.
Fig. 1 is the repeater module schematic diagram of the embodiment of the present invention.
Fig. 2 is the repeater applications of the embodiment of the present invention in the structural representation of monitoring system.
Fig. 3 is the first toggle switch schematic diagram of the embodiment of the present invention.
Fig. 4 is the second toggle switch schematic diagram of the embodiment of the present invention.
The control method flow chart of steps that Fig. 5 is transmitted for the REPEATER DATA of the embodiment of the present invention.
Wherein.
1 repeater;2 CANs
11 first CAN transceivers;12 second CAN transceivers;
13 first toggle switch;14 second toggle switch;
15 microcontrollers;16 clock modules;
17 SWD modules;18 usb interface modules;
19 RS485 transceivers;10 indicating lamp modules.
Specific embodiment
The explanation of following examples is, with reference to additional schema, to be used to illustrate the particular implementation that the present invention may be used to implement
Example.The direction term that the present invention is previously mentioned, for example " on ", D score, "front", "rear", "left", "right", " top ", " bottom " etc., be only
With reference to the direction of annexed drawings.Therefore, the direction term for using is to illustrate and understand the present invention, and is not used to limit this hair
It is bright.
Embodiment:As shown in figure 1, a kind of repeater, including one first CAN transceiver 11, one second CAN transceiver 12,
One first toggle switch 13, one second toggle switch 14, a microcontroller 15, a clock module 16, a SWD modules 17, a USB
Interface module 18, a RS485 transceivers 19, an indicating lamp module 10, a GPIO modules and a power module.Above-mentioned module is equal
It is connected to microcontroller 15.
Wherein, in the present embodiment, the first CAN transceiver 11 and the second CAN transceiver 12 using built-in controller and
TGA1040 data collectors.
First CAN transceiver 11 and the second CAN transceiver 12 are used to enter line number with the CAN 2 of its respective corresponding connection
According to or information transmission.
In the present embodiment, as shown in Fig. 2 the first CAN transceiver 11 carries out data or information with the CAN 2 of lower level
Transmission, the second CAN transceiver 12 carries out the transmission of data or information with the CAN 2 of upper level.
As shown in Figure 3, Figure 4;In the present embodiment, the first toggle switch 13, the second toggle switch 14 have 8 dial-ups.Its
In, the first toggle switch 13 is used to configure an id information;The id information scope of its configuration is 0 ~ 255.Second toggle switch 14 is used
In the BOOT patterns for configuring one first baud rate, the second baud rate and microcontroller.Wherein, the second toggle switch 14 includes 8
Position dial-up, wherein, front two dial-up is used to configure the level state of BOOT0 and BOOT1, after configuring the microcontroller reset
The starting region of program, the 3rd to the 5th dial-up is used to configuring the first baud rate, and the 6th to the 8th is used to configuring the
Two baud rates.
In the present embodiment, microcontroller 15 uses STM32f105RBT6, is a CAN relaying based on STM32
Device.STM32F105 is internally integrated double bxCAN controllers.CAN protocol V2.0A and V2.0B are supported, baud rate reaches as high as 1Mb/
S, mailbox and 23 grades of FIFO of depth are sent with 3, can carry out a large amount of reports for receiving of efficient process with minimum cpu load
Text.Microcontroller 15 is the calculating and processing center of this repeater 1, while controlling the work of other modules, realizes control first
The data receiver of CAN transceiver 11, reception data receiver parse, pack and and control the data of the second CAN transceiver 12 to send out
Send.Specifically, the modules that microcontroller 15 is attached thereto for Initialize installation, including read from the first toggle switch 13
Id information;And the id information is set to the id information of the repeater 1;And read the first baud from the second toggle switch 14
The BOOT patterns of rate and the second baud rate and the microcontroller 15(The starting region of program i.e. after microcontroller reset);With
And the first baud rate is allocated to the first CAN transceiver 11, the second baud rate is allocated to the second CAN transceiver 12;And control
Make the reception and transmission of the first CAN transceiver 11, the data of the second CAN transceiver 12 or information;Microcontroller 15 is additionally operable to definition
Interrupt identification is received with storage one;And for configuring the CAN transmitting-receivings according to first baud rate, the second baud rate
The divide ratio of device 11, the second CAN transceiver 12;The id information is configured to the first CAN transceiver 11 and the second CAN transceiver
12 data frame standard id information.
Clock module 16, is connected to microcontroller 15, and clock module 16 is used to set delay time.In transmitting-receiving is monitored
Disconnected value for 0 when, then between time delay one is default after, then control the first CAN transceiver 11 to receive data or information again.The present embodiment
In, delay time is set as 10ms.And the delay time of 10ms both ensure that the timely transmission of data or information, it is also possible to have
The control data of effect or information not entanglement, improve the transmission efficiency of data or information.
SWD modules 17 are used for the more newly downloaded debugging of program.
Usb interface module 18 and RS485 transceivers 19 are provided with spare interface, can realize that USB and 485 leads to microcontroller 15
Letter, combines with CAN 2 and is capable of achieving 2 turn of 485 communication of 2 turns of usb communications of CAN and CAN, with specific reference to situation selection,
Make that repeater 1 is accessed and flexibility is realized in communication.
Indicating lamp module 10 includes the first indicator lamp, the second indicator lamp, the 3rd indicator lamp, and the first indicator lamp is used to indicate the
The working condition of one CAN transceiver 11, represents that the first CAN transceiver 11 is receiving data or letter when such as the first indicator lamp flashes
Breath, when the value for receiving interrupt identification is 1, then the first indicator lamp is negated;Second indicator lamp is used to indicate the second CAN transceiver 12
Working condition, such as the second indicator lamp flash when represent that the second CAN transceiver 12 is sending data or information, when receive interrupt
When the value of mark is 0, then the second indicator lamp is negated;;The running status of program when 3rd indicator lamp represents that counter times judge,
Such as when the number of times of timer reaches default value, for preset value is 1000 in the present embodiment, then the 3rd indicator lamp is negated.
In order to sufficiently illustrate above-described embodiment, data transfer controlling party when the following providing a kind of above-mentioned repeater operation
Method.
As shown in figure 5, a kind of data transfer control method of repeater, comprises the following steps.
S1)First toggle switch 13 is set manually, an id information is configured.Second toggle switch 14, configuration one are set manually
The BOOT patterns of the first baud rate, the second baud rate and repeater.In this step, set by stirring 8 dial-ups, such as
The first 2 BOOT patterns to set microcontroller of the second DIP device are stirred, stirs the 3 to 5th of the second DIP device to set
The baud rate of first CAN transceiver 11 first, stirs the 6 to 8th of the second DIP device to set the ripple of the second CAN transceiver 12 second
Special rate, baud rate is set according to transmission range.
S2)Start repeater 1.The part of module and unit of Initialize installation repeater 1, such as step S21 first)Initialization
Clock module 16, indicating lamp module 10 and GPIO modules, including the delay time for setting clock module 16 are set.
In step S22)Defined in microcontroller 15 reception interrupt identification(receivestate).Such as receivestate
=1 is, then illustrate that the first CAN transceiver 11 is received and interrupt, and receivestate=0 is then to illustrate that the first CAN transceiver 11 is received
Interrupt and stop.
Microcontroller 15 reads the id information from first toggle switch 13, and the id information is configured to described
The id information of repeater 1.The id information is carried out mailing address by repeater 1 as with the CAN 2 being attached thereto.
S3)Initialize installation the first CAN transceiver 11, the second CAN transceiver 12.Initialize installation is comprised the following steps.
S31)Microcontroller 15 from second toggle switch 14 read first baud rate, the second baud rate with and will
First baud rate is allocated to first CAN transceiver 11, and second baud rate is allocated into the 2nd CAN transmitting-receivings
Device 12.
S32)Microcontroller 15 configures first CAN transceiver 11, the according to first baud rate, the second baud rate
The divide ratio of two CAN transceivers 12.
S33)The id information is configured to microcontroller 15 number of the first CAN transceiver 11 and the second CAN transceiver 12
According to frame standard id information.
Initialize installation the first CAN transceiver 11, the second CAN transceiver 12 are divided respectively to pass through microcontroller 15
The transmitting-receiving of Time-sharing control the first CAN transceiver 11, the second CAN transceiver 12, enables transceiving step sequentially to carry out.
S4)Microcontroller 15 controls reception and the hair of the first CAN transceiver 11, the data of the second CAN transceiver 12 or information
Send.
The step S4)It is further comprising the steps of.
S41)Microcontroller 15 controls the first CAN transceiver 11 to receive the data or letter of connected CAN 2
Breath.Break mark adjourning in the reception, and the first CAN transceiver 11 receives data or information.
S42)Microcontroller 15 monitors the first CAN transceiver 11 and reads the value for receiving interrupt identification in real time.The step
It is the real-time effect monitored, so as to timely the first CAN transceiver of frequency dividing control 11 interrupts reception and the 2nd CAN of control is received
Hair device 12 sends the data or information of packing, and it specifically judges that step is as follows.
S43)Whether the value for judging to receive interrupt identification is 1, if 1, then into step S44);If not 1, then enter step
Rapid S45).
S44)If the value for receiving interrupt identification is 1, represents that now the first CAN transceiver 11 is received and interrupt, microcontroller 15
The data or information that first CAN transceiver 11 is received are packed according to the communication protocol of second CAN transceiver 12,
The second CAN transceiver 12 is controlled by the data or information transmission of the packing to the CAN 2 being connected with the second CAN transceiver 12,
Meanwhile, the value of the reception interrupt identification is assigned to 0 by the microcontroller 15.
S45)If the value for receiving interrupt identification is 0, represents that now the first CAN transceiver 11 is received and do not interrupt, then it is described micro-
Controller 15 triggers clock module 16, the timing delay time of the clock module 16;
S46)After delay time is reached, return to step S41).
The step S46)It is further comprising the steps of.
S461)The cycle-index of the counter records data transmit-receive of the clock module 16;
S462)The microcontroller 15 judges whether the cycle-index reaches the set upper limit;If being not reaching to, return to step
S41);If reaching, into step S463)
S463)The microcontroller 15 records the data transmit-receive circulation upper limit, while the value of the counter is assigned into 0, lays equal stress on
New return to step S41).
It should be pointed out that for the present invention through absolutely proving, can also have the embodiment of various conversion and remodeling,
It is not limited to the specific embodiment of above-mentioned implementation method.Above-described embodiment as just explanation of the invention, rather than to this
The limitation of invention.In a word, protection scope of the present invention should include that those are apparent to those skilled in the art
Conversion or replacement and remodeling.
Claims (10)
1. a kind of repeater, it is characterised in that including
One first CAN transceiver, the CAN for corresponding connection carries out the transmission of data or information;
One second CAN transceiver, the CAN for corresponding connection carries out the transmission of data or information;
One first toggle switch, for configuring an id information;
One second toggle switch, for configuring one first baud rate, the second baud rate;
One microcontroller, first CAN transceiver, the second CAN transceiver, the first toggle switch, the second toggle switch connect
It is connected to the microcontroller;
The microcontroller is used to read id information from first toggle switch;And
Id information for the id information to be set to the repeater;And
For from second toggle switch read first baud rate and the second baud rate and
For first baud rate to be allocated into first CAN transceiver, second baud rate is allocated to described
Two CAN transceivers;And
Reception and transmission for controlling first CAN transceiver, the second CAN transceiver data or information.
2. repeater according to claim 1, it is characterised in that also including a clock module, be connected to the microcontroller
Device, the clock module is used to set delay time;
The microcontroller is additionally operable to define and store a reception interrupt identification;And
For according to first baud rate, the second baud rate configure first CAN transceiver, the second CAN transceiver point
Frequency coefficient;
Data frame standard id information for the id information to be configured to the first CAN transceiver and the second CAN transceiver.
3. repeater according to claim 1, it is characterised in that first toggle switch includes 8 dial-ups, its configuration
Id information scope be 0 ~ 255.
4. repeater according to claim 1, it is characterised in that second toggle switch includes 8 dial-ups, wherein,
Front two dial-up is used to configure the level state of BOOT0 and BOOT1, to configure the promoter region of program after the microcontroller reset
Domain;3rd to the 5th dial-up is used to configure the first baud rate, and the 6th to the 8th is used to configure the second baud rate.
5. repeater according to claim 1, it is characterised in that also include
One SWD modules, are connected to the microcontroller, and the SWD modules are used for the more newly downloaded debugging of program;
One usb interface module, is connected to the microcontroller;
One RS485 transceivers, are connected to the microcontroller;
One indicating lamp module, is connected to the microcontroller.
6. a kind of data transfer control method of repeater, it is characterised in that comprise the following steps,
S1)First toggle switch is set manually, an id information is configured;Second toggle switch, configuration one are set manually
First baud rate, the second baud rate, configure the starting region of program after the microcontroller reset;
S2)Start repeater, the microcontroller reads the id information from first toggle switch, and by the id information
It is configured to the id information of the repeater;
S3)First CAN transceiver, the second CAN transceiver described in Initialize installation:Comprise the following steps,
S31)The microcontroller reads first baud rate, the second baud rate and by described the from second toggle switch
One baud rate is allocated to first CAN transceiver, and second baud rate is allocated into second CAN transceiver;
S4)The reception and transmission of the first CAN transceiver, the second CAN transceiver data or information described in the microprocessor control.
7. the data transfer control method of repeater according to claim 6, it is characterised in that the step S2)In also
Comprise the following steps,
S21)Initialize installation clock module, indicating lamp module and GPIO modules, including when the time delay of the clock module is set
Between;
S22)Define the reception interrupt identification of the microcontroller.
8. the data transfer control method of repeater according to claim 7, it is characterised in that the step S3)Including
It is further comprising the steps of:
S32)The microcontroller configures the CAN transmitting-receivings according to first baud rate, the second baud rate
The divide ratio of device, the second CAN transceiver;
S33)The id information is configured to the microcontroller data frame mark of the first CAN transceiver and the second CAN transceiver
Quasi- id information.
9. the data transfer control method of repeater according to claim 8, it is characterised in that the step S4)Also wrap
Include following steps;
S41)First CAN transceiver described in the microprocessor control receives the data or information of connected CAN;
S42)The microcontroller monitors first CAN transceiver and reads the value for receiving interrupt identification in real time;
S43)Whether the value for judging to receive interrupt identification is 1, if 1, then into step S44);If not 1, then into step
S45);
S44)If the value for receiving interrupt identification is 1, represents that now first CAN transceiver is received and interrupt, the microcontroller
The data or information that first CAN transceiver is received are packed according to the communication protocol of second CAN transceiver, control
The CAN that extremely be connected with second CAN transceiver for the data or information transmission of the packing by second CAN transceiver,
Meanwhile, the value of the reception interrupt identification is assigned to 0 by the microcontroller;
S45)If the value for receiving interrupt identification is 0, represents that now first CAN transceiver is received and do not interrupt, then the micro-control
Device processed triggers clock module, the clock module timing delay time;
S46)After delay time is reached, return to step S41).
10. the data transfer control method of repeater according to claim 9, it is characterised in that the step S46)Also
Comprise the following steps,
S461)The cycle-index of the counter records data transmit-receive of the clock module;
S462)The microcontroller judges whether the cycle-index reaches the set upper limit;If being not reaching to, return to step
S41);If reaching, into step S463)
S463)The microcontroller records the data transmit-receive circulation upper limit, while the value of the counter is assigned to 0, and again
Return to step S41).
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611214555.1A CN106850368A (en) | 2016-12-26 | 2016-12-26 | A kind of control method of repeater and its data transfer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611214555.1A CN106850368A (en) | 2016-12-26 | 2016-12-26 | A kind of control method of repeater and its data transfer |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106850368A true CN106850368A (en) | 2017-06-13 |
Family
ID=59136804
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611214555.1A Pending CN106850368A (en) | 2016-12-26 | 2016-12-26 | A kind of control method of repeater and its data transfer |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106850368A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113411238A (en) * | 2020-03-16 | 2021-09-17 | 阿里巴巴集团控股有限公司 | CAN bus network access unit, related network, method and device |
CN113820971A (en) * | 2021-08-17 | 2021-12-21 | 广东智科电子股份有限公司 | Isolation repeater and control method thereof |
JP2021536151A (en) * | 2018-05-31 | 2021-12-23 | グーグル エルエルシーGoogle LLC | Low power, high bandwidth, low latency data bus |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN203933666U (en) * | 2014-05-05 | 2014-11-05 | 上海至信实业股份有限公司 | A kind of CAN bus repeater |
-
2016
- 2016-12-26 CN CN201611214555.1A patent/CN106850368A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN203933666U (en) * | 2014-05-05 | 2014-11-05 | 上海至信实业股份有限公司 | A kind of CAN bus repeater |
Non-Patent Citations (1)
Title |
---|
莫琼华: "基于STM32F105的CAN总线中继器的设计与实现", 《电子技术设计与应用》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2021536151A (en) * | 2018-05-31 | 2021-12-23 | グーグル エルエルシーGoogle LLC | Low power, high bandwidth, low latency data bus |
JP7293257B2 (en) | 2018-05-31 | 2023-06-19 | グーグル エルエルシー | Low power, high bandwidth, low latency data bus |
CN113411238A (en) * | 2020-03-16 | 2021-09-17 | 阿里巴巴集团控股有限公司 | CAN bus network access unit, related network, method and device |
WO2021185120A1 (en) * | 2020-03-16 | 2021-09-23 | 阿里巴巴集团控股有限公司 | Can bus network access unit, and related network, method and apparatus |
CN113820971A (en) * | 2021-08-17 | 2021-12-21 | 广东智科电子股份有限公司 | Isolation repeater and control method thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105610876B (en) | Industrial control automation network communication protocol converter and communication protocol conversion method | |
CN201887792U (en) | Multi-protocol conversion gateway | |
CN104378729B (en) | Mobile communications network service implementation method and mobile terminal system | |
CN105976134B (en) | Enterprise energy management information acquisition system and method based on ZigBee wireless networking technology | |
CN203827378U (en) | Serial server | |
CN103036892A (en) | Industrial ethernet protocol converter | |
CN106850368A (en) | A kind of control method of repeater and its data transfer | |
CN102196601A (en) | Wireless data transmission device based on WSN (wireless sensor network), GPRS (general packet radio service) and GPS (global position system) | |
CN106131028B (en) | A kind of data transmission method of Free-port communication gateway | |
CN106355873B (en) | Internet of things intelligent traffic gateway and system thereof | |
CN104881008A (en) | Remote monitoring system based on Internet-of-Things | |
CN111654424A (en) | Method and system for converting multipath parallel CAN into Ethernet | |
CN108345558B (en) | RS485 centralized configuration unit supporting multiple protocols | |
CN108206715B (en) | Unmanned vehicles formation flight control data chain system based on ethernet | |
CN202759477U (en) | Industrial communication protocol transition system | |
CN102843380B (en) | A kind of method solved based on the serial port communication bottleneck of MODBUS | |
CN205754298U (en) | A kind of intelligent communication extension element being applied to photovoltaic generating system | |
CN208076997U (en) | A kind of equipment high in the clouds monitoring management system | |
CN103546297A (en) | CAN (controller area network) bus repeater for mining | |
CN107769960B (en) | BMC management architecture based on CAN bus | |
CN103092111A (en) | Protocol conversion module and intelligent circuit breaker of controller area network (Can) and Modbus | |
CN109802877A (en) | A kind of CAN bus based Communication System Design | |
CN103298167A (en) | Mobile data gateway of Internet of things | |
CN203135924U (en) | Industrial ethernet protocol converter | |
CN208924235U (en) | Processor and network security device |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170613 |
|
RJ01 | Rejection of invention patent application after publication |