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
RoadTests & Reviews
  • Products
  • More
RoadTests & Reviews
Blog Microchip CAN Analyzer Road Test - part 2: Inject CAN Messages
  • Blog
  • RoadTest Forum
  • Documents
  • RoadTests
  • Reviews
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
RoadTests & Reviews requires membership for participation - click to join
  • RoadTest
  • microchip
  • can_bus_analyzer
  • analyzer
  • can_bus
  • automotive
  • hercules
  • launchpad
  • can
  • Subscribe by email
  • More
  • Cancel
  • 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

image

 

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.

 

image

 

 

 

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
  • Sign in to reply

Top Comments

  • DAB
    DAB over 5 years ago +2
    I like your simple testing steps. Learn to walk before you try anything stressful. DAB
  • Jan Cumps
    Jan Cumps over 5 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…
  • DAB
    DAB over 5 years ago

    I like your simple testing steps.

     

    Learn to walk before you try anything stressful.

     

    DAB

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 5 years ago

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

     

    image

     

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

    image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
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