Method for testing I2C bus communication among multiple devices

A detection method and bus communication technology, applied in bus network, data exchange through path configuration, digital transmission system, etc., can solve the problems of receiving data confusion, bus communication interference, etc., and achieve the effect of improving anti-interference ability

Inactive Publication Date: 2011-04-20
MIDEA GRP CO LTD
View PDF2 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention provides a method for detecting I2C bus communication among multiple devices, so as to

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
  • Method for testing I2C bus communication among multiple devices
  • Method for testing I2C bus communication among multiple devices
  • Method for testing I2C bus communication among multiple devices

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] The present invention will be described in further detail below in conjunction with the accompanying drawings and specific embodiments.

[0027] This embodiment is described by taking the self-test method of the present invention applied to an induction cooker as an example. As a software error correction design method for automatic recovery after the MCU I2C communication fails, it ensures that the I2C can be automatically restarted after the MCU communication that makes the system work fails. Communication, to ensure that the core power devices of induction cooker products are not damaged and safe.

[0028] Such as figure 1 As shown, the microcontroller MCU of the main board of the induction cooker is used as the host, and the I2C communication subroutine is called every 10ms in the main program loop body. At this time, the host releases the bus by initializing the host I2C communication module. Such as figure 2 As shown, the microcontroller MCU on the display boa...

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 bus communication control, in particular to a method for testing bus communication among multiple devices. The multiple devices comprise master devices and slave devices adopting microcontrollers, wherein the master devices and slave devices comprise communication modules; and the communication modules of the master device are communicated with the communication modules of the slave devices through buses. The method is as follows: the master devices execute the following self-test operations at an interval of communication time: (11) testing whether the communication port of the bus of the main device is in a busy state; and (12) if the communication port of the bus of the master device is in the busy state, initializing the communication module of the master devices, otherwise, quitting the self-test operations. In the invention, through self-test, the anti-jamming capability of microprogrammed control unit (MCU) communication can be greatly improved by using a software error correction method capable of automatically recovering after communication failure is found, thereby ensuring the safe and reliable work of electrical equipmentsystems.

Description

technical field [0001] The invention relates to the technical field of bus communication control, in particular to a method for detecting bus communication between multiple devices. Background technique [0002] At present, the monitoring and error correction methods of the microcontroller (Micro Controller Unit, MCU) mainly include methods such as watchdog, setting software traps, and applying redundant instructions, which are mainly used to control the phenomenon of software runaway. In the actual application of household electrical appliances, due to the uncertainty of power grid fluctuations, the actual situation of non-isolated power supplies for some household electrical appliances, and the fact that the maximum reset voltage of individual MCUs is lower than its minimum normal operating voltage, As a result, during the working process of household electrical appliances, the MCU communication bus is interfered, resulting in confusion of received data, and even failure t...

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
IPC IPC(8): H04L12/26H04L12/40
Inventor 刘杰丁娟毛宏建
Owner MIDEA GRP 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