CN108132898A - Multiplex communication control method and communication box - Google Patents
Multiplex communication control method and communication box Download PDFInfo
- Publication number
- CN108132898A CN108132898A CN201810036517.4A CN201810036517A CN108132898A CN 108132898 A CN108132898 A CN 108132898A CN 201810036517 A CN201810036517 A CN 201810036517A CN 108132898 A CN108132898 A CN 108132898A
- Authority
- CN
- China
- Prior art keywords
- microcontroller
- host computer
- bus
- channel
- configuration
- 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/14—Handling requests for interconnection or transfer
- G06F13/36—Handling requests for interconnection or transfer for access to common bus or bus system
- G06F13/362—Handling requests for interconnection or transfer for access to common bus or bus system with centralised access control
-
- 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/42—Bus transfer protocol, e.g. handshake; Synchronisation
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention discloses a kind of multiplex communication control method and communication box, the method includes:System operation, microcontroller are initialized with external equipment;Wait for host computer transmission data;Receive whether data are microcontroller channel configuration order;If so, selection the microcontroller channel to be configured, according to host computer order into row of channels configuration change, and to host computer reply microcontroller channel configuration status;If it is not, then the configuration data preserved using microcontroller, selects corresponding microcontroller channel that the data penetration transmission received is gone out;If the data received are returned to host computer by the microcontroller channel reception data outage having been selected;It shuts down when reaching the microcontroller unused time.Parameter is configured in the channel that the slave computer interface unit of microcontroller is configured by host computer by the present invention, multiple products are tested simultaneously for realization or the operation of burning, it is mutually incompatible caused inconvenient to eliminate special communication box, can meet the needs of different communications, using flexible.
Description
Technical field
The present invention relates to field of communication technology more particularly to a kind of multiplex communication control method and communication boxes.
Background technology
Between existing communication equipment carry out data transmission or carry out chip, the test of product, burning when, it is general to use
Specific purpose tool, at least there are the deficiencies of following aspect for this mode:
First, efficiency is low, multiple products or chip can not be tested simultaneously or burning;
Second is that product is incompatible, general specific purpose tool can only connect single product, it is impossible to compatible multiple product;
Third, communication protocol cures, user cannot be according to self-demand, customized setting interface parameters.
Therefore, the prior art needs to improve.
Invention content
To solve the above problems, the invention discloses a kind of multiplex communication control method and communication box, to solve existing skill
The problem of art.One side based on the embodiment of the present invention discloses a kind of multiplex communication control method, including:
System brings into operation, and microcontroller is completed to initialize with external equipment;
Judge whether microcontroller receives host computer data;
If it is not, then host computer data is waited for reach;
If it is, receiving host computer transmission data, and judge to receive whether data are microcontroller channel configuration order;
If configuration order, then microcontroller channel Allocation Analysis processing routine is run, select the microcontroller channel to be configured, root
Microcontroller channel configuration order is sent to according to host computer to be modified, and the configuration status of microcontroller channel is replied to host computer;
If not configuration order, then the configuration data preserved using microcontroller selects corresponding microcontroller according to configuration data
Channel goes out the data penetration transmission received;
If during host computer transmission data is received, the microcontroller channel reception data outage that has been selected will then receive
To data return to host computer;
When microcontroller reaches the unused time, then microcontroller shuts down.
In another embodiment based on above-mentioned multiplex communication control method, the microcontroller channel includes:CAN bus is led to
Road, iic bus channel, 485 bus runs, LIN bus runs, bluetooth communication channel;
The CAN bus channel is used to implement between microcontroller and external equipment to be communicated by CAN bus;
The iic bus channel is used to implement between microcontroller and external equipment to be communicated by iic bus;
485 bus run is used to implement between microcontroller and external equipment to be communicated by 485 buses;
The LIN bus runs are used to implement between microcontroller and external equipment to be communicated by LIN buses;
The bluetooth communication channel is used to implement between microcontroller and external equipment to be communicated by bluetooth communication.
In another embodiment based on above-mentioned multiplex communication control method, the microcontroller channel configuration order includes:
The relay channel configuration function order of microcontroller, the CAN bus channel configuration function order of microcontroller, microcontroller
The order of iic bus channel configuration function, 485 bus run configuration function orders of microcontroller, microcontroller LIN bus runs match
It puts one or more in the bluetooth communication module channel configuration function order of function command, microcontroller.
In another embodiment based on above-mentioned multiplex communication control method, the relay channel configuration letter of the microcontroller
Number order includes:
Microcontroller receives the microcontroller channel configuration order of host computer transmission, and monolithic is included in microcontroller channel configuration order
The CAN bus channel configuration function order of machine;
Microcontroller runs the CAN bus channel configuration function order of microcontroller, is carried out according to the communications protocol formulated with host computer
Communication;
According to the CAN bus channel configuration function order configuration operating mode of microcontroller of host computer, ID MASK, device id and
Transmission rate information;
The CAN bus channel configuration information of microcontroller is returned back into host computer, completes the CAN bus channel configuration of microcontroller.
In another embodiment based on above-mentioned multiplex communication control method, the iic bus channel configuration of the microcontroller
Function command includes:
Microcontroller receives the microcontroller channel configuration order of host computer transmission, and monolithic is included in microcontroller channel configuration order
The iic bus channel configuration function order of machine;
Judge whether iic bus configured rate allows in iic bus in speed range;
If it is not, then terminate the iic bus channel configuration function order of operation microcontroller;
If it is, judging whether iic bus configuration device address type is the data format for supporting iic bus;
If it is not, then terminate the iic bus channel configuration function order of operation microcontroller;
If it is, iic bus device address is configured;
The iic bus channel configuration information of microcontroller is returned back into host computer, completes the iic bus channel configuration of microcontroller.
In another embodiment based on above-mentioned multiplex communication control method, the 485 bus runs configuration of the microcontroller
Function command includes:
Microcontroller receives the microcontroller channel configuration order of host computer transmission, and monolithic is included in microcontroller channel configuration order
485 bus run configuration function orders of machine;
According to the communication speed of the 485 bus run configuration function orders configuration microcontroller of host computer, communication check bit, communication length
Degree, communication stop position information;
485 bus run configuration informations of microcontroller are returned back into host computer, complete the 485 bus runs configuration of microcontroller.
In another embodiment based on above-mentioned multiplex communication control method, the LIN bus runs configuration of the microcontroller
Function command includes:
Microcontroller receives the microcontroller channel configuration order of host computer transmission, and monolithic is included in microcontroller channel configuration order
The LIN bus run configuration function orders of machine;
According to the slave pattern of the LIN bus run configuration functions order configuration microcontroller of host computer, configuration slave addresses, match
Put communication speed information;
The LIN bus run configuration informations of microcontroller are returned back into host computer, complete the LIN bus runs configuration of microcontroller.
In another embodiment based on above-mentioned multiplex communication control method, the bluetooth communication module channel of the microcontroller
Configuration function order includes
Microcontroller receives the microcontroller channel configuration order of host computer transmission, and monolithic is included in microcontroller channel configuration order
The bluetooth communication module channel configuration function order of machine;
Bluetooth communication module title is configured, and judges whether bluetooth communication module title is less than 32 bytes;
If it is not, then the iic bus channel configured rate parameter using original microcontroller;
If it is, the bluetooth communication module title in the configuration order that host computer is sent is configured in bluetooth communication module;
Bluetooth communication module communication speed is configured;
The bluetooth communication module channel configuration information of microcontroller is returned back into host computer, the bluetooth communication module for completing microcontroller leads to
Road is configured.
Other side based on the embodiment of the present invention discloses a kind of communication box, including:
Main control circuit unit, host computer, host computer interface unit, slave computer interface unit, external equipment;
The host computer is connect by the host computer interface unit with the main control circuit unit, and the external equipment passes through institute
Slave computer interface unit is stated to connect with the main control circuit unit;
The host computer is by host computer interface unit by the channel command down-transmitting of slave computer interface unit to governor circuit
Unit;
Slave computer interface unit is configured according to the microcontroller channel configuration order that the host computer issues in the main control circuit unit
Communications protocol parameter, make between main control circuit unit and external equipment through the self-defined communications protocol of slave computer interface unit
Realize data transmission;
The main control circuit unit includes microcontroller.
In another embodiment based on above-mentioned communication box, the communications protocol of the slave computer interface unit includes:IIC is total
Line communications protocol, 485 bus protocols, CAN bus communications protocol, UART communications protocol, LIN bus protocols and bluetooth
Communication module.
Compared with prior art, the present invention includes advantages below:
The logical of the slave computer interface unit of microcontroller is configured by host computer for the multiplex communication control method and communication box of the present invention
Parameter is configured in road, and slave computer interface unit setting multiple communication interface agreement can be realized while multiple products are tested
Or the operation of burning, mutually incompatible caused inconvenient this invention removes special communication box, functionally more powerful, operation is more
Succinctly, can meet the needs of different communications, using flexible, reliability is high, substantially increases production efficiency, saves and be manufactured into
This.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, to embodiment or will show below
There is the attached drawing used in technology description to do one simply to introduce, it should be apparent that, the accompanying drawings in the following description is of the invention
Some embodiments, for those of ordinary skill in the art, without creative efforts, can also be according to this
A little attached drawings obtain other attached drawings.
Fig. 1 is the structure diagram of one embodiment of the communication box of the present invention.
Fig. 2 is the flow chart of one embodiment of the multiplex communication control method of the present invention.
Fig. 3 is the flow chart of another embodiment of the multiplex communication control method of the present invention.
Fig. 4 is the flow chart of another embodiment of the multiplex communication control method of the present invention.
Fig. 5 is the flow chart of another embodiment of the multiplex communication control method of the present invention.
Fig. 6 is the flow chart of another embodiment of the multiplex communication control method of the present invention.
Fig. 7 is the flow chart of another embodiment of the multiplex communication control method of the present invention.
In figure:It is 1 main control circuit unit, 11 microcontrollers, 2 host computers, 3 host computer interface units, 4 slave computer interface units, 5 external
Equipment.
Specific embodiment
Purpose, technical scheme and advantage to make the embodiment of the present invention are clearer, below in conjunction with the embodiment of the present invention
In attached drawing, the technical solution in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment only
It is part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
Member's all other embodiments obtained without making creative work, shall fall within the protection scope of the present invention.
With reference to the accompanying drawings and examples to a kind of multiplex communication control method provided by the invention and communication box and detection
Method is described in more detail.
Fig. 1 is the structure diagram of one embodiment of the communication box of the present invention, as shown in Figure 1, the communication box includes:
Main control circuit unit 1, host computer 2, host computer interface unit 3, slave computer interface unit 4, external equipment 5;
The host computer 2 is connect by the host computer interface unit 3 with the main control circuit unit 1, and the external equipment 5 is logical
The slave computer interface unit 4 is crossed to connect with the main control circuit unit 1;
Host computer interface unit 3 is used to implement the serial communication between main control circuit unit 1 and host computer 2;
Slave computer interface unit 4 be used to implement between main control circuit unit 1 and external equipment 5 based on iic bus communications protocol,
485 bus protocols, CAN bus communications protocol, UART communications protocol, LIN bus protocols and bluetooth communication into
Row communication;
The host computer 2 is electric to master control by the channel command down-transmitting of slave computer interface unit 4 by host computer interface unit 3
Road unit 1;
Slave computer interface list is configured according to the microcontroller channel configuration order that the host computer 2 issues in the main control circuit unit 1
The communications protocol parameter of member 4 makes between main control circuit unit 1 and external equipment 5 through the self-defined logical of slave computer interface unit 4
Interrogate protocol realization data transmission;
The main control circuit unit 1 includes microcontroller 11, and the microcontroller 11 is the enhanced systems of STM32 of group of STMicw Electronics
Arrange MCU.
The communications protocol of the slave computer interface unit 4 includes:Iic bus communications protocol, 485 bus protocols, CAN
Bus protocol, UART communications protocol, LIN bus protocols and bluetooth communication.
Fig. 2 is the flow chart of one embodiment of the multiplex communication control method of the present invention, as shown in Fig. 2, the multichannel
Communicating control method includes:
10, system brings into operation, and microcontroller 11 is completed to initialize with external equipment 5;
20, judge whether microcontroller 11 receives 2 data of host computer;
30, if it is not, then 2 data of host computer is waited for reach;
40, if it is, receiving 2 transmission data of host computer, and judge to receive whether data are 11 channel configuration order of microcontroller;
50, if configuration order, then 11 channel Allocation Analysis processing routine of microcontroller is run, select the microcontroller 11 to be configured
Channel is sent to 11 channel configuration order of microcontroller according to host computer 2 and is modified, and replys microcontroller 11 to host computer 2 and lead to
The configuration status in road;
60, if not configuration order, then the configuration data preserved using microcontroller 11 selects corresponding list according to configuration data
11 channel of piece machine goes out the data penetration transmission received;
70, if during 2 transmission data of host computer is received, the 11 channel reception data outage of microcontroller that has been selected, then
The data received are returned into host computer 2;
80, when microcontroller 11 reaches the unused time, then microcontroller 11 shuts down.
11 channel of microcontroller includes:CAN bus channel, iic bus channel, 485 bus runs, LIN bus runs,
Bluetooth communication channel;
The CAN bus channel is used to implement between microcontroller 11 and external equipment 5 and is communicated by CAN bus;
The iic bus channel is used to implement between microcontroller 11 and external equipment 5 and is communicated by iic bus;
485 bus run is used to implement between microcontroller 11 and external equipment 5 and is communicated by 485 buses;
The LIN bus runs are used to implement between microcontroller 11 and external equipment 5 and are communicated by LIN buses;
The bluetooth communication channel is used to implement between microcontroller 11 and external equipment 5 to be led to by bluetooth communication
News.
The 11 channel configuration order of microcontroller includes:
The relay channel configuration function order of microcontroller 11, the CAN bus channel configuration function order of microcontroller 11, microcontroller
11 iic bus channel configuration function order, 485 bus run configuration function orders of microcontroller 11, the LIN of microcontroller 11 are total
It is one or more in the order of line passage configuration function, the bluetooth communication module channel configuration function order of microcontroller 11.
In the relay channel configuration function order of microcontroller 11, the unlocking condition including relay, duration data;
In the CAN bus channel configuration function order of microcontroller 11, the operating mode including CAN bus communications protocol is configured,
ID MASK, ID and rate parameter;
In the iic bus channel configuration function order of microcontroller 11, the IIC including iic bus communications protocol is configured communicates speed
Rate, device address type, device address parameter;
In 485 bus run configuration function orders of microcontroller 11, the communication speed including 485 bus protocols are configured,
Check bit communicates word length and stop position parameter;
In the LIN bus run configuration function orders of microcontroller 11, the master slave mode including configuration LIN bus protocols,
Slave addresses, communication speed parameter;
In the bluetooth communication module channel configuration function order of microcontroller 11, the indigo plant including bluetooth communication module communications protocol is configured
Tooth module title, communication speed parameter.
Fig. 3 is the flow chart of another embodiment of the multiplex communication control method of the present invention, as shown in figure 3, the list
The relay channel configuration function order of piece machine 11 includes:
101, microcontroller 11 receives the 11 channel configuration order of microcontroller of the transmission of host computer 2, and 11 channel of microcontroller configuration life
The CAN bus channel configuration function order of microcontroller 11 is included in enabling;
102, microcontroller 11 runs the CAN bus channel configuration function order of microcontroller 11, according to the communication formulated with host computer 2
Agreement is communicated;
103, according to the operating mode of the CAN bus channel configuration function order configuration microcontroller 11 of host computer 2, ID MASK, set
Standby ID and transmission rate information;
104, the CAN bus channel configuration information of microcontroller 11 is returned back into host computer 2, the CAN bus for completing microcontroller 11 is led to
Road is configured.
In the CAN bus channel configuration function order for performing host computer 2, it is examined in the CAN bus channel of host computer 2
Whether the configuration informations such as operating mode, ID MASK, device id and the transmission rate of microcontroller 11 are included in configuration function order,
If it find that a certain item does not have, then the parameter configuration of CAN bus channel is exited, no longer performs the inspection of following project.
Fig. 4 is the flow chart of another embodiment of the multiplex communication control method of the present invention, as shown in figure 4, the list
The iic bus channel configuration function order of piece machine 11 includes:
201, microcontroller 11 receives the 11 channel configuration order of microcontroller of the transmission of host computer 2, and 11 channel of microcontroller configuration life
The iic bus channel configuration function order of microcontroller 11 is included in enabling;
202, judge whether iic bus configured rate allows in iic bus in speed range;
203, if it is not, then the iic bus channel configured rate parameter using original microcontroller 11;
204, if it is, judging whether iic bus configuration device address type is the data format for supporting iic bus;
205, if it is not, then terminating the iic bus channel configuration function order of operation microcontroller 11;
206, if it is, iic bus device address is configured;
207, the iic bus channel configuration information of microcontroller 11 is returned back into host computer 2, the iic bus for completing microcontroller 11 leads to
Road is configured.
The iic bus allows speed range to be 85k to 180k;
Iic bus configuration device address type is 8,16 and 32, and iic bus device address will be according to device address type
The position of configuration is limited, i.e. 8 device address types only allow the device address of a byte, 16 device addresses are configured
Type only allows the device address of two bytes is configured, and 32 device address types only allow the equipment of four bytes is configured
Location.
Fig. 5 is the flow chart of another embodiment of the multiplex communication control method of the present invention, as shown in figure 5, the list
485 bus run configuration function orders of piece machine 11 include:
301, microcontroller 11 receives the 11 channel configuration order of microcontroller of the transmission of host computer 2, and 11 channel of microcontroller configuration life
485 bus run configuration function orders of microcontroller 11 are included in enabling;
302, it is verified according to the communication speed of the 485 bus run configuration function orders configuration microcontroller 11 of host computer 2, communication
Position, communication length, communication stop position information;
303,485 bus run configuration informations of microcontroller 11 are returned back into host computer 2,485 buses for completing microcontroller 11 are led to
Road is configured.
Microcontroller 11 is connected to 485 bus transceivers by UART interface, realizes data penetration transmission, therefore 485 buses use
The configuration of UART channels when 485 bus run is configured, will change the configuration of UART channels, and change the configuration of UART channels simultaneously
Also the configuration that 485 bus runs will be changed, 485 bus runs and UART channels support configuration communication speed, check bit, communication word
Long and stop position after the completion of configuration, will reply host computer configuration status.
Fig. 6 is the flow chart of another embodiment of the multiplex communication control method of the present invention, as shown in fig. 6, the list
The LIN bus run configuration function orders of piece machine 11 include:
401, microcontroller 11 receives the 11 channel configuration order of microcontroller of the transmission of host computer 2, and 11 channel of microcontroller configuration life
The LIN bus run configuration function orders of microcontroller 11 are included in enabling;
402, according to the slave pattern of the LIN bus run configuration functions order configuration microcontroller 11 of host computer 2, configuration slave
Address, configuration communication speed information;
403, the LIN bus run configuration informations of microcontroller 11 are returned back into host computer 2, the LIN buses for completing microcontroller 11 are led to
Road is configured.
Fig. 7 is the flow chart of another embodiment of the multiplex communication control method of the present invention, as shown in fig. 7, the list
The bluetooth communication module channel configuration function order of piece machine 11 includes:
501, microcontroller 11 receives the 11 channel configuration order of microcontroller of the transmission of host computer 2, and 11 channel of microcontroller configuration life
The bluetooth communication module channel configuration function order of microcontroller 11 is included in enabling;
502, bluetooth communication module title is configured, and judge whether bluetooth communication module title is less than 32 bytes;
503, if it is not, then terminating the bluetooth communication module channel configuration function order of operation microcontroller 11;
504, if it is, the bluetooth communication module title in the configuration order that host computer 2 is sent is configured to bluetooth communication module
In;
505, bluetooth communication module communication speed is configured;
506, the bluetooth communication module channel configuration information of microcontroller 11 is returned back into host computer 2, completes the bluetooth of microcontroller 11
Communication module channel is configured.
A kind of multiplex communication control method provided by the present invention and communication box are described in detail above, herein
It applies specific case to be expounded the principle of the present invention and embodiment, the explanation of above example is only intended to help
Understand the method and its core concept of the present invention;Meanwhile for those of ordinary skill in the art, thought according to the present invention,
There will be changes in specific embodiments and applications, in conclusion the content of the present specification should not be construed as to this
The limitation of invention.
Finally it should be noted that:The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention,
Although the present invention is described in detail referring to the foregoing embodiments, for those skilled in the art, still may be used
To modify to the technical solution recorded in foregoing embodiments or carry out equivalent replacement to which part technical characteristic,
All within the spirits and principles of the present invention, any modification, equivalent replacement, improvement and so on should be included in the present invention's
Within protection domain.
Claims (10)
1. a kind of multiplex communication control method, which is characterized in that including:
System brings into operation, and microcontroller is completed to initialize with external equipment;
Judge whether microcontroller receives host computer data;
If it is not, then host computer data is waited for reach;
If it is, receiving host computer transmission data, and judge to receive whether data are microcontroller channel configuration order;
If configuration order, then microcontroller channel Allocation Analysis processing routine is run, select the microcontroller channel to be configured, root
Microcontroller channel configuration order is sent to according to host computer to be modified, and the configuration status of microcontroller channel is replied to host computer;
If not configuration order, then the configuration data preserved using microcontroller selects corresponding microcontroller according to configuration data
Channel goes out the data penetration transmission received;
If during host computer transmission data is received, the microcontroller channel reception data outage that has been selected will then receive
To data return to host computer;
When microcontroller reaches the unused time, then microcontroller shuts down.
2. multiplex communication control method according to claim 1, which is characterized in that the microcontroller channel includes:CAN is total
Line passage, iic bus channel, 485 bus runs, LIN bus runs, bluetooth communication channel;
The CAN bus channel is used to implement between microcontroller and external equipment to be communicated by CAN bus;
The iic bus channel is used to implement between microcontroller and external equipment to be communicated by iic bus;
485 bus run is used to implement between microcontroller and external equipment to be communicated by 485 buses;
The LIN bus runs are used to implement between microcontroller and external equipment to be communicated by LIN buses;
The bluetooth communication channel is used to implement between microcontroller and external equipment to be communicated by bluetooth communication.
3. multiplex communication control method according to claim 1, which is characterized in that the microcontroller channel configuration order packet
It includes:
The relay channel configuration function order of microcontroller, the CAN bus channel configuration function order of microcontroller, microcontroller
The order of iic bus channel configuration function, 485 bus run configuration function orders of microcontroller, microcontroller LIN bus runs match
It puts one or more in the bluetooth communication module channel configuration function order of function command, microcontroller.
4. multiplex communication control method according to claim 3, which is characterized in that the relay channel of the microcontroller is matched
Function command is put to include:
Microcontroller receives the microcontroller channel configuration order of host computer transmission, and monolithic is included in microcontroller channel configuration order
The CAN bus channel configuration function order of machine;
Microcontroller runs the CAN bus channel configuration function order of microcontroller, is carried out according to the communications protocol formulated with host computer
Communication;
According to the CAN bus channel configuration function order configuration operating mode of microcontroller of host computer, ID MASK, device id and
Transmission rate information;
The CAN bus channel configuration information of microcontroller is returned back into host computer, completes the CAN bus channel configuration of microcontroller.
5. multiplex communication control method according to claim 3, which is characterized in that the iic bus channel of the microcontroller
Configuration function order includes:
Microcontroller receives the microcontroller channel configuration order of host computer transmission, and monolithic is included in microcontroller channel configuration order
The iic bus channel configuration function order of machine;
Judge whether iic bus configured rate allows in iic bus in speed range;
If it is not, then the iic bus channel configured rate parameter using original microcontroller;
If it is, judging whether iic bus configuration device address type is the data format for supporting iic bus;
If it is not, then terminate the iic bus channel configuration function order of operation microcontroller;
If it is, iic bus device address is configured;
The iic bus channel configuration information of microcontroller is returned back into host computer, completes the iic bus channel configuration of microcontroller.
6. multiplex communication control method according to claim 3, which is characterized in that 485 bus runs of the microcontroller
Configuration function order includes:
Microcontroller receives the microcontroller channel configuration order of host computer transmission, and monolithic is included in microcontroller channel configuration order
485 bus run configuration function orders of machine;
According to the communication speed of the 485 bus run configuration function orders configuration microcontroller of host computer, communication check bit, communication length
Degree, communication stop position information;
485 bus run configuration informations of microcontroller are returned back into host computer, complete the 485 bus runs configuration of microcontroller.
7. multiplex communication control method according to claim 3, which is characterized in that the LIN bus runs of the microcontroller
Configuration function order includes:
Microcontroller receives the microcontroller channel configuration order of host computer transmission, and monolithic is included in microcontroller channel configuration order
The LIN bus run configuration function orders of machine;
According to the slave pattern of the LIN bus run configuration functions order configuration microcontroller of host computer, configuration slave addresses, match
Put communication speed information;
The LIN bus run configuration informations of microcontroller are returned back into host computer, complete the LIN bus runs configuration of microcontroller.
8. multiplex communication control method according to claim 3, which is characterized in that the bluetooth communication module of the microcontroller
Channel configuration function order includes
Microcontroller receives the microcontroller channel configuration order of host computer transmission, and monolithic is included in microcontroller channel configuration order
The bluetooth communication module channel configuration function order of machine;
Bluetooth communication module title is configured, and judges whether bluetooth communication module title is less than 32 bytes;
If it is not, then terminate the bluetooth communication module channel configuration function order of operation microcontroller;
If it is, the bluetooth communication module title in the configuration order that host computer is sent is configured in bluetooth communication module;
Bluetooth communication module communication speed is configured;
The bluetooth communication module channel configuration information of microcontroller is returned back into host computer, the bluetooth communication module for completing microcontroller leads to
Road is configured.
9. a kind of communication box, which is characterized in that including:
Main control circuit unit, host computer, host computer interface unit, slave computer interface unit, external equipment;
The host computer is connect by the host computer interface unit with the main control circuit unit, and the external equipment passes through institute
Slave computer interface unit is stated to connect with the main control circuit unit;
The host computer is by host computer interface unit by the channel command down-transmitting of slave computer interface unit to governor circuit
Unit;
Slave computer interface unit is configured according to the microcontroller channel configuration order that the host computer issues in the main control circuit unit
Communications protocol parameter, make between main control circuit unit and external equipment through the self-defined communications protocol of slave computer interface unit
Realize data transmission;
The main control circuit unit includes microcontroller.
10. communication box as claimed in claim 9, which is characterized in that the communications protocol of the slave computer interface unit includes:
Iic bus communications protocol, 485 bus protocols, CAN bus communications protocol, UART communications protocol, LIN bus protocols
And bluetooth communication.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810036517.4A CN108132898A (en) | 2018-01-15 | 2018-01-15 | Multiplex communication control method and communication box |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810036517.4A CN108132898A (en) | 2018-01-15 | 2018-01-15 | Multiplex communication control method and communication box |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108132898A true CN108132898A (en) | 2018-06-08 |
Family
ID=62400686
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810036517.4A Pending CN108132898A (en) | 2018-01-15 | 2018-01-15 | Multiplex communication control method and communication box |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108132898A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110535493A (en) * | 2019-09-02 | 2019-12-03 | 上海云丁微电子有限公司 | A kind of blue-teeth communication equipment |
CN111602375A (en) * | 2019-07-03 | 2020-08-28 | 深圳市中联创新自控系统有限公司 | Data distributor and communication method thereof |
CN114465891A (en) * | 2022-02-22 | 2022-05-10 | 广东博力威科技股份有限公司 | Multi-mode communication configuration method of communication box and terminal equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101083014A (en) * | 2007-07-03 | 2007-12-05 | 浙江大学 | Fire hazard centralized and dispersed type monitoring network based on RS232 and RS485 bus |
CN101149599A (en) * | 2006-09-22 | 2008-03-26 | 中国科学院沈阳科学仪器研制中心有限公司 | Data gathering and liquid crystal display device |
CN102279827A (en) * | 2011-06-09 | 2011-12-14 | 惠州市德赛西威汽车电子有限公司 | Multifunctional communication transit box |
CN103559066A (en) * | 2013-11-19 | 2014-02-05 | 上海创程车联网络科技有限公司 | CANOPEN-protocol-based embedded software upgrading method |
CN104022934A (en) * | 2014-05-28 | 2014-09-03 | 中山火炬职业技术学院 | PROFIBUS-DP protocol-based communication equipment communication method |
CN106991065A (en) * | 2017-03-31 | 2017-07-28 | 东莞博力威电池有限公司 | Method by USB host computers with being communicated with CAN and/or LIN bus apparatus |
-
2018
- 2018-01-15 CN CN201810036517.4A patent/CN108132898A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101149599A (en) * | 2006-09-22 | 2008-03-26 | 中国科学院沈阳科学仪器研制中心有限公司 | Data gathering and liquid crystal display device |
CN101083014A (en) * | 2007-07-03 | 2007-12-05 | 浙江大学 | Fire hazard centralized and dispersed type monitoring network based on RS232 and RS485 bus |
CN102279827A (en) * | 2011-06-09 | 2011-12-14 | 惠州市德赛西威汽车电子有限公司 | Multifunctional communication transit box |
CN103559066A (en) * | 2013-11-19 | 2014-02-05 | 上海创程车联网络科技有限公司 | CANOPEN-protocol-based embedded software upgrading method |
CN104022934A (en) * | 2014-05-28 | 2014-09-03 | 中山火炬职业技术学院 | PROFIBUS-DP protocol-based communication equipment communication method |
CN106991065A (en) * | 2017-03-31 | 2017-07-28 | 东莞博力威电池有限公司 | Method by USB host computers with being communicated with CAN and/or LIN bus apparatus |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111602375A (en) * | 2019-07-03 | 2020-08-28 | 深圳市中联创新自控系统有限公司 | Data distributor and communication method thereof |
WO2021000275A1 (en) * | 2019-07-03 | 2021-01-07 | 深圳市中联创新自控系统有限公司 | Data distributor and communication method therefor |
CN111602375B (en) * | 2019-07-03 | 2022-05-03 | 深圳市中联创新自控系统有限公司 | Data distributor and communication method thereof |
CN110535493A (en) * | 2019-09-02 | 2019-12-03 | 上海云丁微电子有限公司 | A kind of blue-teeth communication equipment |
CN114465891A (en) * | 2022-02-22 | 2022-05-10 | 广东博力威科技股份有限公司 | Multi-mode communication configuration method of communication box and terminal equipment |
CN114465891B (en) * | 2022-02-22 | 2023-09-29 | 广东博力威科技股份有限公司 | Multi-mode communication configuration method of communication box and terminal equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8924603B2 (en) | Protocol adapter for passing diagnostic messages between a host computer and vehicle networks operating in J1939 or J1708 protocol | |
CN103248526A (en) | Communication equipment and method for achieving out-of-band monitoring and management, and master-slave switching method | |
CN108111382B (en) | Communication device based on I3C bus and communication method thereof | |
CN1811743A (en) | USB hub, USB-compliant apparatus, and communication system | |
US20130173751A1 (en) | Protocol adapter for passing diagnostic messages between vehicle networks and a host computer | |
CN108132898A (en) | Multiplex communication control method and communication box | |
CN104852868A (en) | Gigabit switch SFP (Small Form-factor Pluggable transceiver) interface rate self-adaptation method and device | |
CN105306324B (en) | A kind of Ethernet multiplex communication system and its Ethernet interface setting method of application | |
CN103972909A (en) | TSC (thyristor switched capacitor) system and RS485 communication method thereof based on FPGA (Field Programmable Gate Array) | |
CN111948971A (en) | Intelligent card management device and data switching method thereof | |
CN210324188U (en) | Integrated circuit bus IIC master-slave competition automatic switching equipment and system thereof | |
CN103186440A (en) | Method, device and system for detecting in-place state of sub cards | |
CN203706058U (en) | CAN bus based multi-I/O board card expansion structure | |
CN117640283B (en) | Vehicle-mounted Ethernet analysis system | |
WO2024113990A1 (en) | Information query method for optical modules, and a related assembly thereof | |
CN1316388C (en) | USB control circuit suitable to computer-to-computer transmission and its operation method | |
CN104484302A (en) | System for realizing both-way communication and control between two hosts based on USB (Universal Serial Bus) interfaces | |
CN108521416B (en) | ECN integrated circuit board | |
CN104346310A (en) | Data exchange circuit and method of high-performance I2C slave equipment | |
CN107769960B (en) | BMC management architecture based on CAN bus | |
CN113992471B (en) | Communication system and method for multiple hosts and multiple slaves | |
CN112800001A (en) | High-performance Internet of things hardware platform and method based on ARM platform architecture | |
CN212660174U (en) | Network card and network equipment | |
CN110008167A (en) | A kind of method of adjust automatically serial ports output mode | |
CN104679117A (en) | Computer system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 523000 Tongsha New Industrial Park, Dongcheng Street, Dongguan City, Guangdong Province Applicant after: Guangdong Boliwei Technology Co., Ltd. Address before: 523000 new industrial zone, Dongcheng District, Guangdong, Dongguan Applicant before: DongGuan Greenway Battery Co., Ltd. |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180608 |