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
    • More
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • More
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • More
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • More
  • 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
RoadTests & Reviews
  • Products
  • More
RoadTests & Reviews
Blog Microchip CAN Analyzer Road Test - part 2: Inject CAN Messages
  • Blog
  • RoadTest Forum
  • Documents
  • Events
  • RoadTests
  • Reviews
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • RoadTest
  • microchip
  • can_bus_analyzer
  • analyzer
  • can_bus
  • automotive
  • hercules
  • launchpad
  • can
  • Share
  • Subscribe by email
  • More
  • Cancel
Related
Recommended

Microchip CAN Analyzer Road Test - part 2: Inject CAN Messages

Jan Cumps
Jan Cumps
27 Oct 2017

I'm reviewing the Microchip CAN Analyzer for a Road Test.

It'll be used in a CAN Bus that I'm designing. This blog checks how to inject traffic from the Analyzer

 

An Analyzer that Generates Traffic

 

I'm using the Microchip CAN Analyzer as a development tool. One of the interesting things is that it can also generate CAN messages.

This is very useful as a debug tool. You can configure a CAN receiving mailbox on your microcontroller, then use the analyzer to shoot messages that the mailbox should capture or ignore.

You can generate that traffic from the GUI.

 

 

 

 

You can define the ID, extended ID, payload, repeat count and delay.

I'll use that mechanism to check if my interrupt based CAN firmware on a Hercules microcontroller fires when needed, ignores when not applicable.

The message ID and extended ID define if this is the case or not.

It 'll also help to see if collision detection and handling works as expected.

Now that I know how to generate that traffic, it'll make my work easier.

Road Test Blog
part 1: First trials
part 2: Inject CAN Messages
part 3: Analyzer as Test Tool
part 4: Analyze the Physical layer of CAN Bus
Related Blog
part 1: tryout
part 2: Communication between 2 Devices
part 3a: Design a Bus Driver PCB
part 3b: Design a Bus Driver PCB - Schematics and Custom Components
part 3c: Design a Bus Driver PCB - Layout
part 3d: Design a Bus Driver PCB - Test
Anonymous

Top Comments

  • DAB
    DAB over 4 years ago +2

    I like your simple testing steps.

     

    Learn to walk before you try anything stressful.

     

    DAB

  • Jan Cumps
    Jan Cumps over 4 years ago +1

    Yay, a message sent from the analyzer triggers the read handler on the microcontroller that I programmed.

     

     

    This analyzer turns out to be very useful. Both for reading traffic and for generating test messages…

Parents
  • Jan Cumps
    Jan Cumps over 4 years ago

    Yay, a message sent from the analyzer triggers the read handler on the microcontroller that I programmed.

     

     

    This analyzer turns out to be very useful. Both for reading traffic and for generating test messages.

    • Cancel
    • Up +1 Down
    • Reply
    • More
    • Cancel
Comment
  • Jan Cumps
    Jan Cumps over 4 years ago

    Yay, a message sent from the analyzer triggers the read handler on the microcontroller that I programmed.

     

     

    This analyzer turns out to be very useful. Both for reading traffic and for generating test messages.

    • Cancel
    • Up +1 Down
    • Reply
    • More
    • Cancel
Children
No Data
Element14

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 © 2022 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