Data acquisition method and system of I2C bus

A data acquisition system and data acquisition technology, applied in the field of communication, can solve problems such as inability to control multiple sensors at the same time, sensor address conflicts, etc.

Inactive Publication Date: 2020-07-07
UBTECH ROBOTICS CORP LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, the embodiment of the present invention provides an I2C bus data acquisition method and system to solve the problem that the existing multiple sensors have the same I2C communication address, which causes address conflicts between sensors and cannot control multiple sensors at the same time. The problem

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data acquisition method and system of I2C bus
  • Data acquisition method and system of I2C bus
  • Data acquisition method and system of I2C bus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0047] figure 1 The implementation flowchart of the I2C bus data acquisition method provided by the first embodiment of the present invention is shown, and the details are as follows:

[0048] A data acquisition method of an I2C bus, wherein the bus is connected with a master device and a plurality of slave devices, and the data acquisition method comprises:

[0049] In S101, addresses of slave devices are configured in a preset order.

[0050] In this embodiment, the master device is a micro control unit (MicrocontrollerUnit, MCU) with I2C communication function, and the slave device is used to ...

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 is suitable for the technical field of communication, and provides a data acquisition method and system of an I2C bus. The method comprises: configuring addresses of the slave equipmentaccording to a preset sequence; sending an addressing instruction, inquiring each slave equipment in sequence according to the addresses in the preset sequence, wherein the addressing instruction andthe addresses are in one-to-one correspondence; and importing the data collected by the slave equipment into the master equipment. By reconfiguring the addresses of the slave equipment, when the dataof the slave equipment are collected, the addressing instruction is sent, each slave equipment is inquired according to the preset sequence of the addresses, and then the data collected by the slave equipment are imported into the master equipment one by one. The address conflict problem between the slave equipments is solved, and the master equipment can control the slave equipment at the same time.

Description

technical field [0001] The invention belongs to the technical field of communication, and in particular relates to an I2C bus data acquisition method and system. Background technique [0002] Today, with the rapid development of robot technology, robots are becoming more and more intelligent, and systems are becoming more and more complex. In particular, more and more sensors are used on large mobile robots. The infrared sensors in the prior art generally use the analog communication method, the interference of the analog communication is relatively large, and the sensor is prone to false alarms. [0003] Digital circuits generally use I2C communication (digital circuits have strong anti-interference ability and almost no false alarm rate), and the I2C communication interface of MCU generally only has two channels, and the addresses of I2C communication for multiple infrared sensors are the same, resulting in infrared The address conflict between sensors cannot control mul...

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/362
CPCG06F13/362G06F2213/0016
Inventor 熊友军闫海月
Owner UBTECH ROBOTICS CORP 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