CN110471877A - Daisy chain communication structure and communication means - Google Patents

Daisy chain communication structure and communication means Download PDF

Info

Publication number
CN110471877A
CN110471877A CN201910602482.0A CN201910602482A CN110471877A CN 110471877 A CN110471877 A CN 110471877A CN 201910602482 A CN201910602482 A CN 201910602482A CN 110471877 A CN110471877 A CN 110471877A
Authority
CN
China
Prior art keywords
daisy chain
conversion module
feedback information
mcu
duart
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
Application number
CN201910602482.0A
Other languages
Chinese (zh)
Inventor
吴艳辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen pengshen Technology Co.,Ltd.
Original Assignee
Shenzhen Pengshen Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Pengshen Technology Co Ltd filed Critical Shenzhen Pengshen Technology Co Ltd
Priority to CN201910602482.0A priority Critical patent/CN110471877A/en
Publication of CN110471877A publication Critical patent/CN110471877A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4004Coupling between buses
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4247Bus transfer protocol, e.g. handshake; Synchronisation on a daisy chain bus
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses daisy chain communication structure and communication means, communication structure includes conversion module and daisy chain, conversion module is connect with a MCU, the daisy chain includes several sequentially connected devices, the device in wherein one end is arranged to connect with conversion module, and it is top device that definition, which is arranged in the device of the other end, is communicated between every two adjacent device using DUART, the MCU is used to receive external instruction and transmits instruction to conversion module.DUART communication interface standard built in daisy chain device of the invention, only need each two communication interfaces up and down, realize that half-duplex bidirectional setting and communication protocol are supported, setting top device is for supporting two -way difference DUART, the difference DUART of voltage mode, make the high-voltage capacitor isolation for supporting low cost, improves communication efficiency, power consumption is more balanced.

Description

Daisy chain communication structure and communication means
Technical field
The present invention relates to daisy chain more particularly to daisy chain communication structures and communication means.
Background technique
Daisy chain refer to it is a kind of be cascaded the garland formed by many chrysanthemums, be used to presentation technology chain, in addition to possessing The network on starlike basis is the most easy method for increasing more computers to network through daisy chain.
Daisy chain higher cost is used at present, and this mode generallys use current-mode and needs transformer isolation, and current Device communication between daisy chain inside needs multiple communication interfaces, and device power consumption is unbalanced in daisy chain.
Summary of the invention
For overcome the deficiencies in the prior art, one of the objects of the present invention is to provide daisy chain communication structures, can solve Multiple communication interfaces, the unbalanced problem of power consumption are certainly used in the prior art.
The second object of the present invention is to improve daisy chain communication means, can solve and use multiple communications in the prior art Interface, the unbalanced problem of power consumption.
An object of the present invention is implemented with the following technical solutions:
Daisy chain communication structure, including conversion module and daisy chain, conversion module are connect with a MCU, the daisy chain Including several sequentially connected devices, arrange the device in wherein one end and connect with conversion module, and define be arranged in it is another The device at end is top device, is communicated between every two adjacent device using DUART, and the MCU is used to receive external finger It enables and transmits instruction to conversion module, conversion module is used to the data packet that described instruction is converted to preset format being sent to chrysanthemum In chain, data packet to be transmitted in the device of top by daisy chain, the top device is also used to for feedback information being sent to In daisy chain in adjacent device, in daisy chain any one device by from a upper adjacent devices feedback information and from The feedback information of body is integrated into new feedback information and is sent in next adjacent device, so that conversion module will be from mutual The new feedback information of the device of connection is sent to MCU.
Preferably, Synchronization agreement is all made of between the conversion module and daisy chain and inside daisy chain.
Preferably, mutual by the port DUART_H and DUART_L between two devices of arbitrary neighborhood in daisy chain Connection.
Preferably, it is connected between the MCU and conversion module by SPI interface.
Preferably, the preset format of the data packet is title+effective information+check code.
Preferably, feedback information includes status information and data.
Preferably, the format of the status information is type+data inspection state+check code.
Preferably, the format of the data is type+data+check code.
The second object of the present invention uses following technical scheme:
Daisy chain communication means is applied to daisy chain, and the daisy chain includes several sequentially connected devices, is arranged in Wherein the device of one end is connect with conversion module, and it is top device that definition, which is arranged in the device of the other end, is included the following steps:
S1: the data packet from conversion module is received, the data packet is by conversion module to the instruction from MCU with default Format carries out conversion formation;
S2: data packet is transferred to top device by device upwards in turn;
S3: receiving the feedback information from top device, and in adjacent device, next device will come from a upper device The feedback information of part and the feedback information of itself are integrated into new feedback information, and adjacent device successively transmits downwards new anti- Feedforward information, so that new feedback information is sent to MCU by conversion module.
Compared with prior art, the beneficial effects of the present invention are:
DUART communication interface standard built in daisy chain device of the invention, it is only necessary to which each two communication interfaces up and down are realized Half-duplex bidirectional setting and communication protocol support that setting top device is for supporting two -way difference DUART, the difference of voltage mode DUART supports the high-voltage capacitor isolation of low cost, improves communication efficiency, power consumption is more balanced.
Detailed description of the invention
Fig. 1 is the function structure chart of daisy chain communication structure of the invention;
Fig. 2 is that transmission figure is read in the broadcast of daisy chain communication structure of the invention;
Fig. 3 is the flow chart of daisy chain communication means of the invention.
Specific embodiment
In the following, being described further in conjunction with attached drawing and specific embodiment to the present invention:
Referring to figs. 1 and 2, the present invention includes conversion module (convertor in Fig. 1) and daisy chain, conversion Module is connect with a MCU, and the daisy chain includes several sequentially connected devices (Device), arranges the device in wherein one end Part is connect with conversion module, and it is top device that definition, which is arranged in the device of the other end, is used between every two adjacent device DUART (Difference Universal Asynchronous Receiver/Transmitter difference universal asynchronous receiving-transmitting Transmitter) communication, for the MCU for receiving external instruction and transmitting instruction to conversion module, conversion module is used for will be described The data packet that instruction is converted to preset format is sent in daisy chain, data packet is transmitted to top device by daisy chain In, the top device is also used to for feedback information being sent in device adjacent in daisy chain, any one device in daisy chain Part by from a upper adjacent devices feedback information and the feedback information of itself be integrated into new feedback information and be sent to down In one adjacent device, so that the new feedback information from device interconnected is sent to MCU by conversion module.
Difference DUART supports the communication of a variety of isolating devices, inductance, capacitor.We use single group half-duplex bidirectional difference DUART interface, so that upper lower communication interface number optimizes, corresponding interface harness minimum number.Suitable for this kind of control instruction Clearly daisy chain structure.Device can be chronically at the sleep state of low-power consumption, be waken up by DUART interface, receive communication Instruction.Top (TOP) device can be set automatically in daisy chain, complete instruction operation after, carry out result passback when by top device Part carries out passback transmission first, and the addition of more results is back to MCU again by intermediary device together.Data packet is used in device communication Mutual information transmission is carried out, the response (response) that the order (command) and device that MCU is issued return all makes Use packet structure.Synchronization agreement is all made of between conversion module and daisy chain and inside daisy chain.In chrysanthemum In chain, interconnected between two devices of arbitrary neighborhood by DUART_H and the port DUART_L.Between MCU and conversion module It is connected by SPI interface.Manchester's code, every number are all carried out for every bit valid data in transmission in device communication It all include effective information and 8bit CRC check position according to packet, preset format is title CMD (16bit)+effective information CTRL (16bit)+check code CRC (8bit).
Feedback information includes status information and data.The format of status information is that type TYPE (1bit)+data check shape State DC (16bit)+check code CRC (8bit).The format of data is type TYPE (1bit)+data DATA (16bit)+check code CRC(8bit).The position the bit TYPE of highest order corresponds to register data and non-register data, and last 8 are check bit, intermediate 16bit is the wrong status information or ADC test data that the data inspection (Data Check) returned obtains.
Power consumption Equalization Design of the invention is embodied in, A) initialization when be arranged TOP (top) device, B) master (MCU) When write-in, being sent out in TOP device synchronization, the automatic power consumption that is arranged is balanced, C) master is when reading data, from TOP device returned data When, corresponding redundant data can be matched so that each Device transmission data number it is consistent, D) execute instruction sending after, device Part, which successively receives to execute instruction, to be started to execute, and TOP device can also be simultaneously sent to next stage completion equilibrium after receiving instruction.TOP Device returns to OK instruction after the completion of executing, the status register after the completion of successively executing with each device is thought or and returned.
The multi-disc cooperative work mode for supporting distributed link and daisy chain link, using DUART communication interface, daisy chain In link, address pattern (address) and broadcast mode (broadcast) can be taken to be communicated.Device can pass through 4 line SPI It is communicated between MCU, passes through the two-way DUART communication of 2 line half-duplex difference between device.It is carried out in pattern chain linking communications Active power consumption Equalization Design is examined with guaranteeing that the power consumption of each device at work is roughly equal in entire daisy chain in battery strings It surveys in application, the consumption for reducing each battery unit to greatest extent is unbalanced.
Communication transmitting data of the invention includes two classes, is order and response respectively, from MCU to top device sending direction Transmission is order, and from top, device direction is transmitted to the data of MCU to respond.
In daisy chain chain, interconnected between device by DUART_H and the port DUART_L.Daisy chain end turns Mold changing block is connect by SPI with MCU, which is used for the protocol conversion of general SPI interface and DUART interface, is completed graceful Chester encoding and decoding.SPI order is converted into the DUART transmission of Manchester's code.User only needs to send un-encoded SPI order, device will transmission be instructed and is returned the result in isolation daisy chain (daisy-chain) automatically.
In conjunction with Fig. 3, daisy chain communication means provided by the invention is applied to daisy chain, the daisy chain include several according to The device of secondary connection arranges the device in wherein one end and connect with conversion module, and definition is arranged in the device of the other end as top End-apparatus part, method include the following steps:
S1: the data packet from conversion module is received, the data packet is by conversion module to the instruction from MCU with default Format carries out conversion formation;
S2: data packet is transferred to top device by device upwards in turn;
S3: receiving the feedback information from top device, and in adjacent device, next device will come from a upper device The feedback information of part and the feedback information of itself are integrated into new feedback information, and adjacent device successively transmits downwards new anti- Feedforward information, so that new feedback information is sent to MCU by conversion module.
Description is consistent in daisy chain communication means principle and daisy chain communication structure of the invention, and details are not described herein.
It will be apparent to those skilled in the art that can make various other according to the above description of the technical scheme and ideas Corresponding change and deformation, and all these changes and deformation all should belong to the protection scope of the claims in the present invention Within.

Claims (9)

1. daisy chain communication structure, which is characterized in that including conversion module and daisy chain, conversion module is connect with a MCU, institute Stating daisy chain includes several sequentially connected devices, arranges the device in wherein one end and connect with conversion module, and the row of definition The device for being listed in the other end is top device, is communicated between every two adjacent device using DUART, the MCU is for receiving External instruction simultaneously transmits instruction to conversion module, and the data packet that conversion module is used to be converted to described instruction preset format is sent out It send into daisy chain, data packet to be transmitted in the device of top by daisy chain, the top device is also used to feedback letter Breath is sent in device adjacent in daisy chain, any one device is by the feedback letter from a upper adjacent devices in daisy chain Breath and the feedback information of itself are integrated into new feedback information and are sent in next adjacent device, so that conversion module will New feedback information from device interconnected is sent to MCU.
2. daisy chain structure as described in claim 1, which is characterized in that between the conversion module and daisy chain and chrysanthemum Synchronization agreement is all made of inside chain.
3. daisy chain structure as described in claim 1, which is characterized in that in daisy chain, two devices of arbitrary neighborhood it Between interconnected by DUART_H and the port DUART_L.
4. daisy chain structure as described in claim 1, which is characterized in that pass through SPI interface between the MCU and conversion module Connection.
5. daisy chain structure as described in claim 1, which is characterized in that the preset format of the data packet be title+effectively Information+check code.
6. daisy chain structure as described in claim 1, which is characterized in that feedback information includes status information and data.
7. daisy chain structure as claimed in claim 6, which is characterized in that the format of the status information is type+data inspection Look into state+check code.
8. daisy chain structure as claimed in claim 6, which is characterized in that the format of the data is type+data+verification Code.
9. daisy chain communication means, which is characterized in that be applied to daisy chain, the daisy chain includes several sequentially connected devices Part arranges the device in wherein one end and connect with conversion module, and it is top device that definition, which is arranged in the device of the other end, including Following steps:
S1: the data packet from conversion module is received, the data packet is by conversion module to the instruction from MCU with preset format Carry out conversion formation;
S2: data packet is transferred to top device by device upwards in turn;
S3: receiving the feedback information from top device, and in adjacent device, next device will be from a upper device Feedback information and the feedback information of itself are integrated into new feedback information, and adjacent device successively transmits downwards new feedback letter Breath, so that new feedback information is sent to MCU by conversion module.
CN201910602482.0A 2019-07-05 2019-07-05 Daisy chain communication structure and communication means Pending CN110471877A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910602482.0A CN110471877A (en) 2019-07-05 2019-07-05 Daisy chain communication structure and communication means

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910602482.0A CN110471877A (en) 2019-07-05 2019-07-05 Daisy chain communication structure and communication means

Publications (1)

Publication Number Publication Date
CN110471877A true CN110471877A (en) 2019-11-19

Family

ID=68506886

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910602482.0A Pending CN110471877A (en) 2019-07-05 2019-07-05 Daisy chain communication structure and communication means

Country Status (1)

Country Link
CN (1) CN110471877A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112165423A (en) * 2020-09-28 2021-01-01 北京东土科技股份有限公司 Serial communication method, electronic equipment and storage medium
CN113709155A (en) * 2021-08-27 2021-11-26 苏州猛禽视觉科技有限公司 Battery module daisy chain communication conversion method, system and terminal
CN114553632A (en) * 2022-03-01 2022-05-27 深圳市鼎芯无限科技有限公司 Self-numbering daisy chain communication method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101685433A (en) * 2008-09-23 2010-03-31 祥采科技股份有限公司 Serial bus unit assigned address by primary device
CN103580089A (en) * 2012-07-25 2014-02-12 现代摩比斯株式会社 Distributed battery management system and method for distributed battery management
CN107770025A (en) * 2017-11-24 2018-03-06 延锋伟世通电子科技(上海)有限公司 A kind of network device of annular differential communication
CN207311148U (en) * 2017-08-18 2018-05-04 欣旺达电动汽车电池有限公司 A kind of cell managing device
CN207560032U (en) * 2017-11-24 2018-06-29 延锋伟世通电子科技(上海)有限公司 The network device of annular differential communication

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101685433A (en) * 2008-09-23 2010-03-31 祥采科技股份有限公司 Serial bus unit assigned address by primary device
CN103580089A (en) * 2012-07-25 2014-02-12 现代摩比斯株式会社 Distributed battery management system and method for distributed battery management
CN207311148U (en) * 2017-08-18 2018-05-04 欣旺达电动汽车电池有限公司 A kind of cell managing device
CN107770025A (en) * 2017-11-24 2018-03-06 延锋伟世通电子科技(上海)有限公司 A kind of network device of annular differential communication
CN207560032U (en) * 2017-11-24 2018-06-29 延锋伟世通电子科技(上海)有限公司 The network device of annular differential communication

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MAXIM INTEGRATED: "《max17823B 12-channel High-Voltage Data Acquisition System》", <HTTPS://PDF1.ALLDATASHEET-PDF/VIEW/3111696/MAXIM/MAX17832BGCB.HTML> *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112165423A (en) * 2020-09-28 2021-01-01 北京东土科技股份有限公司 Serial communication method, electronic equipment and storage medium
CN113709155A (en) * 2021-08-27 2021-11-26 苏州猛禽视觉科技有限公司 Battery module daisy chain communication conversion method, system and terminal
CN113709155B (en) * 2021-08-27 2023-07-14 苏州猛禽电子科技有限公司 Battery module daisy chain communication conversion method, system and terminal
CN114553632A (en) * 2022-03-01 2022-05-27 深圳市鼎芯无限科技有限公司 Self-numbering daisy chain communication method
CN114553632B (en) * 2022-03-01 2024-02-27 深圳市鼎芯无限科技有限公司 Self-numbering daisy chain communication method

Similar Documents

Publication Publication Date Title
CN110471877A (en) Daisy chain communication structure and communication means
CN102055611B (en) Low-power wireless data acquisition system
CN207184521U (en) Internet of Things Multifunctional gateway based on NB IoT
CN101164355B (en) Method and apparatus for operating a wireless pan network using an overlay protocol that enhances co-existence with a wireless LAN network
CN203366055U (en) Household appliance control system based on cellphone control
CN104754392B (en) A kind of remote-control data transmission method of television set
CN105160956B (en) Classroom instruction accessory system and its communication means
CN102186285A (en) Lamp remotely-controlled by mobile phone Bluetooth and control method thereof
CN204928889U (en) Many interfaces protocol converter
CN201571081U (en) CAN bus and serial port bus protocol converter
CN105743757A (en) Free networking method of RS485 communication terminal
CN104834260B (en) Double CAN referee methods of Two Channels CAN bus control unit based on VFC
CN104008082A (en) Converter of 1553B bus remote terminal (RT) node and controller area network (CAN) bus
CN204423111U (en) A kind of SOC (system on a chip) be applied in intelligent grid concentrator
CN204917489U (en) Elevator control system
CN101827462A (en) Bluetooth wireless communication system architecting method
CN208905026U (en) Versatile interface protocol conversion module based on LORA network
CN207968522U (en) A kind of RS485 bus driving circuits for realizing multi-host communication mode
CN202042049U (en) Zigbee wireless learning infrared transponder
CN208939940U (en) Applied to wireless vehicle microscope carrier master functionality module
CN110196830A (en) A kind of information realtime interactive terminal based on embedded system
CN110365544A (en) A kind of LORA concentrator and its data transmission method, system
CN203554492U (en) Controller LAN bus intelligent interface device and satellite
CN202005037U (en) Mobile phone Bluetooth remote control lamp
CN201820120U (en) Self-adapting multibus execution mechanism controller

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200115

Address after: 201203 No. 328 blue wave road, Zhangjiang Town, Shanghai, Pudong New Area

Applicant after: Wu Yanhui

Address before: 72076, 7th floor, high tech group building, 2076 Yueliangwan Avenue, Nanshan street, Nanshan District, Shenzhen City, Guangdong Province

Applicant before: Shenzhen pengshen Technology Co., Ltd

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210826

Address after: 518054 No. 3101-90 Qianhai Road, Xinghai Mingcheng community, Nantou street, Nanshan District, Shenzhen, Guangdong 2903, phase VII, phase VII, Xinghai Mingcheng community

Applicant after: Shenzhen pengshen Technology Co.,Ltd.

Address before: 201203 No. 328 blue wave road, Zhangjiang Town, Shanghai, Pudong New Area

Applicant before: Wu Yanhui