Multi-device bus communication method and electronic device

A bus communication and multi-device technology, applied in the field of communication, can solve problems such as low speed, complex hardware logic, complex data processing, etc., and achieve the effect of reducing the error rate and simple operation logic

Inactive Publication Date: 2021-04-16
MOCHITEC SHANGHAI CO LTD
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The SPI data rate can reach several Mbps. In general applications, there are 4 signal lines: MOSI, MISO, SCK, CS. Compared with UART, there is one more synchronous clock line, and the communication speed is fast, but multiple devices often need multiple CS lines. , or use additional structures such as decoders to switch, increasing hardware complexity
[0005] I2C uses 2 data lines, the speed is not high, and the network connection is simple, but the data processing is more complicated, and there are many intermediate states. At the same time, I2C requires each device to read and write 2 data lines at the same time, and the hardware logic is relatively complicated.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0025] This embodiment discloses a simple and feasible communication method between a bus-type device and a host, which can enable the host to send data to the device, and also allow the device to send signals to the host.

[0026] The signals in this embodiment can be instructions and data, and the purpose of communication can be to manipulate the device and collect information from the device, or it can be a request-response mode.

[0027] The basic form of this embodiment is to use 2 data lines, including a data line and a clock line. In a period of time, the clock line is operated by a device, which can be controlled by a host or a special single-chip microcomputer , to generate a persistent rectangular wave, there is no special requirement for the flip time of the rectangular wave, but generally it is a rectangular wave with better graphics quality, higher flip frequency and more uniform frequency distribution, the host and each device can be used (but not required) read ...

Embodiment 2

[0034] This embodiment discloses a multi-device bus communication method. In a period of time, the clock line is operated by a device, which can be controlled by a host or a special single-chip microcomputer to generate a persistent rectangular wave. For rectangular There is no special requirement for the turning time of the wave, but it is generally a rectangular wave with better graphics quality, higher turning frequency and more uniform frequency distribution.

[0035] The sending of data is triggered immediately after the upper edge of the clock line, and the receiving of data is triggered immediately after the lower edge of the clock line. The data is realized by writing the data line under the above specified trigger, where 1 is writing high level, 0 is writing low level. Correspondingly, reading data is realized by reading the data line under the above trigger, where it is 1 when reading high level, and is 0 when reading low level.

[0036] The transmitted bits are orga...

Embodiment 3

[0039] This embodiment discloses an electronic device, which includes a processor and a memory storing execution instructions, and when the processor executes the execution instructions stored in the memory, the processor executes the light beam used for multi-device bus communication Object tracking method.

[0040] To sum up, the present invention provides a bus suitable for multi-device communication. Only two data lines are used as communication lines. Compared with SPI, the utilization rate of data lines is higher, and each device only operates one data line. I2C, the operation logic is relatively simple,

[0041] The present invention has scalable addresses, and the number of devices that can be operated exceeds that of I2C, and has scalable check frames, which can reduce the error rate to a very low level.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to the technical field of communication, in particular to a multi-device bus communication method and an electronic device, and the method comprises the steps: employing a data line and a clock line, employing a single device to operate the clock line, and generating a lasting rectangular wave; when the data line is used for sending dat, triggering the data line behind the upper edge of the clock line, and when the data is received, triggering the data line immediately behind the lower edge of the clock line; wherein frames for transmitting data comprise an address frame used for a standard message destination address, a data frame used for transmitting control information or data to equipment, and a verification frame used for verifying data transmission accuracy according to message organization. Only two data lines are used as communication lines, compared with SPI, the utilization rate of the data lines is high, each device only operates one data line, compared with I2C, the operation logic is simple, the number of the devices capable of being operated exceeds I2C, the number of the devices capable of being operated exceeds I2C, an extensible check frame is provided, and the error omission ratio can be reduced to a very random low level.

Description

technical field [0001] The invention relates to the field of communication technology, in particular to a multi-device bus communication method and electronic equipment. Background technique [0002] At present, there are three widely used communication protocols for host devices: I2C, SPI, and UART. [0003] UART is an asynchronous full-duplex serial communication protocol, which consists of two data lines Tx and Rx. Because there is no reference clock signal, the two sides of the communication must agree on the serial port baud rate, data bit width, parity bit, stop Configure parameters such as bits to communicate at the same rate. UART belongs to asynchronous transmission, but it has strict timing requirements. Under the same signal quality, the speed is slower. [0004] SPI is a synchronous serial interface technology introduced by Motorola, which is a high-speed, full-duplex, synchronous communication bus. The SPI data rate can reach several Mbps. In general applicat...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F13/40G06F13/42
Inventor 邵启伟
Owner MOCHITEC SHANGHAI CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products