element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • Product Groups
  • Store
    Store
    • Visit Your Store
    • Choose Another Store
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
Personal Blogs
  • Members
  • More
Personal Blogs
Legacy Personal Blogs Debugging CANbus For IoT Devices
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: caroline_teledynelecroy
  • Date Created: 27 Nov 2018 8:13 AM Date Created
  • Views 343 views
  • Likes 2 likes
  • Comments 0 comments
  • internet of things
  • can bus
  • iot devices
  • spi
  • thermocouple
  • oscilloscope
  • teledynelecroy
  • uart
  • teledyne lecroy oscilloscope
  • teledyne
  • iot
  • lecroy
  • can
Related
Recommended

Debugging CANbus For IoT Devices

caroline_teledynelecroy
caroline_teledynelecroy
27 Nov 2018

A myriad of serial-data standards come into play when we're discussing Internet of Things (IoT) devices. We've talked about I2C, SPI, and UART in a previous post. Yet another serial-bus standard that comes under the IoT umbrella is the Controller Area Network (or CANbus) standard. CANbus enables microcontrollers and peripheral devices to communicate with each other in applications without an intervening host computer. In the past, it's been typically used in automotive applications, but CANbus has found its way into a wider scope of applications of late.

image

Figure 1: Temperature data from thermocouples is shown both encoded and decoded on the oscilloscope's display

 

Figure 1 provides a real-world example of what CANbus debugging looks like in practice. The image shows thermocouple signals being transmitted over CANbus. The left side of the oscilloscope's screen shows encoded bus traffic, with the temperature data from the sensors encoded in binary. On the right side of the display, the temperatures are shown decoded and broken out in histogram format.


image

Figure 2: A closer look at the oscilloscope display from Figure 1 shows encoded and decoded temperature data

 

A closer look at the display appears in Figure 2. The grid at lower right shows a trend plot of the temperature data as it varies over time. There are two thermocouples being tracked, with the blue track rising and the green falling. The histogram shows the distribution of the temperature data, all of which originates from encoded CANbus traffic.


image

Figure 3: CANbus traffic from an accelerometer can be decoded and trend-plotted on an oscilloscope to observe changes over time

 

Similarly, the oscilloscope can be used to trend-plot data from motion sensors. In Figure 3, we see an engineer holding an accelerometer. As the device is shaken, the device outputs encoded digital data representing its X, Y, and Z coordinates. The oscilloscope extracts these values from the decoded data and displays a trend plot of the changes in the coordinates over time.

image

Figure 4: Another closeup of the oscilloscope display shows the trend plot of accelerometer data

 

As with the thermocouple data, a better look at the oscilloscope's display shows the X, Y, and Z position data encoded as blue, orange, and green trend plots (Figure 4). It's not unlike a datalogger that shows the rapid changes in position in great detail.

 

Coming next is a post about Ethernet, SATA, and PCIe debug for IoT devices.

 

Previous blogs in this series:

Debugging the IoT

Anatomy of an IoT Device

IoT Digital Power Management and Power Integrity

Investigating IoT Wireless Signals

Investigating IoT Wireless Signals (Part II)

Acquiring and Characterizing IoT Sensor Signals

Debugging Low-Speed Serial Data on IoT Devices

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2023 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • Facebook
  • Twitter
  • linkedin
  • YouTube