Author Topic: Rigol DHO814 - capturing CAN frames  (Read 1053 times)

0 Members and 1 Guest are viewing this topic.

Online eTobeyTopic starter

  • Frequent Contributor
  • **
  • Posts: 558
  • Country: de
Rigol DHO814 - capturing CAN frames
« on: March 17, 2024, 07:17:58 pm »
Hi,

i try to capture CAN frames in a row with it. I did not have any luck to achieve this in a usable manner. Always some frames will get dropped or are hidden at some time.

I tried the record function, but i cant get the intervals to match the frame. The lowest i achieved was about 3ms.
Also having like 200ms wont work, since the list only displays those frames that are visible, and only if its not zoomed to far out. Its a zoom and scroll nightmare!

"Sometimes, after talking with a person, you want to pet a dog, wave at a monkey, and take off your hat to an elephant." (Maxim Gorki)
 
The following users thanked this post: egonotto

Online Martin72

  • Super Contributor
  • ***
  • Posts: 5842
  • Country: de
  • Testfield Technician
Re: Rigol DHO814 - capturing CAN frames
« Reply #1 on: March 17, 2024, 08:19:18 pm »
Come to the dark side of the force, we have cookies..
 
The following users thanked this post: egonotto

Online eTobeyTopic starter

  • Frequent Contributor
  • **
  • Posts: 558
  • Country: de
Re: Rigol DHO814 - capturing CAN frames
« Reply #2 on: March 17, 2024, 08:31:00 pm »
Come to the dark side of the force, we have cookies..

Allright then!
"Sometimes, after talking with a person, you want to pet a dog, wave at a monkey, and take off your hat to an elephant." (Maxim Gorki)
 
The following users thanked this post: egonotto

Offline voltsandjolts

  • Supporter
  • ****
  • Posts: 2300
  • Country: gb
Re: Rigol DHO814 - capturing CAN frames
« Reply #3 on: March 17, 2024, 08:32:32 pm »
Logic analyser + sigrok PulseView = happy life  ;D
 
The following users thanked this post: egonotto, thm_w

Online eTobeyTopic starter

  • Frequent Contributor
  • **
  • Posts: 558
  • Country: de
Re: Rigol DHO814 - capturing CAN frames
« Reply #4 on: March 20, 2024, 10:08:57 am »
I just joined the dark side of the force today 8), but i cant find how to get the list to show. Cant find it in the manual either.

"Sometimes, after talking with a person, you want to pet a dog, wave at a monkey, and take off your hat to an elephant." (Maxim Gorki)
 
The following users thanked this post: egonotto

Offline pdenisowski

  • Frequent Contributor
  • **
  • Posts: 641
  • Country: us
  • Product Management Engineer, Rohde & Schwarz
    • Test and Measurement Fundamentals Playlist on the R&S YouTube channel
Re: Rigol DHO814 - capturing CAN frames
« Reply #5 on: March 20, 2024, 10:46:00 am »
Come to the dark side of the force, we have cookies..

Or if you want to go full dark side .... :)

Test and Measurement Fundamentals video series on the Rohde & Schwarz YouTube channel:  https://www.youtube.com/playlist?list=PLKxVoO5jUTlvsVtDcqrVn0ybqBVlLj2z8

Free online test and measurement fundamentals courses from Rohde & Schwarz:  https://tinyurl.com/mv7a4vb6
 
The following users thanked this post: egonotto, Martin72

Offline pdenisowski

  • Frequent Contributor
  • **
  • Posts: 641
  • Country: us
  • Product Management Engineer, Rohde & Schwarz
    • Test and Measurement Fundamentals Playlist on the R&S YouTube channel
Re: Rigol DHO814 - capturing CAN frames
« Reply #6 on: March 20, 2024, 10:53:39 am »
Also having like 200ms wont work, since the list only displays those frames that are visible, and only if its not zoomed to far out. Its a zoom and scroll nightmare!

Yeah, the real trick in decoding protocol (especially CAN) is (a) making sure you have the time/div setting such that the frame(s) you're interested in fit completely on the screen and (b) triggering on the frame(s) your are interested in.

And an OBDII breakout box is an easy way to get an unlimited supply of real CAN frames to test against (see Insta post above).  Even though CAN is differentially signaled, many scopes can decode just by looking at CAN_H or CAN_L.
Test and Measurement Fundamentals video series on the Rohde & Schwarz YouTube channel:  https://www.youtube.com/playlist?list=PLKxVoO5jUTlvsVtDcqrVn0ybqBVlLj2z8

Free online test and measurement fundamentals courses from Rohde & Schwarz:  https://tinyurl.com/mv7a4vb6
 
The following users thanked this post: egonotto

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 26907
  • Country: nl
    • NCT Developments
Re: Rigol DHO814 - capturing CAN frames
« Reply #7 on: March 20, 2024, 10:59:50 am »
Setting the memory size to the maximum (fixed) helps a lot when doing protocol decoding. IF the oscilloscope supports decoding the full memory (which Rigol and Siglent don't AFAIK; these decode only what is on screen. Hence the problems the OP is having). Another option is to enable zoom mode to force acquiring more data than fits on the regular screen at the cost of screen real-estate.
« Last Edit: March 20, 2024, 11:23:25 am by nctnico »
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 
The following users thanked this post: egonotto, pdenisowski

Online Martin72

  • Super Contributor
  • ***
  • Posts: 5842
  • Country: de
  • Testfield Technician
Re: Rigol DHO814 - capturing CAN frames
« Reply #8 on: March 20, 2024, 11:35:01 am »
Quote
which Rigol and Siglent don't AFAIK

Forgotten again, eh? ;)

 
The following users thanked this post: egonotto

Online Martin72

  • Super Contributor
  • ***
  • Posts: 5842
  • Country: de
  • Testfield Technician
Re: Rigol DHO814 - capturing CAN frames
« Reply #9 on: March 20, 2024, 11:36:05 am »
I just joined the dark side of the force today 8), but i cant find how to get the list to show. Cant find it in the manual either.

Click on result list..
 
The following users thanked this post: egonotto

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 26907
  • Country: nl
    • NCT Developments
Re: Rigol DHO814 - capturing CAN frames
« Reply #10 on: March 20, 2024, 11:45:21 am »
Quote
which Rigol and Siglent don't AFAIK

Forgotten again, eh? ;)
Well, try your test again and see if the list with decoded messages stays the same when you zoom in OR that the list contents is limited to what is on screen. As an extra test, try to zoom in on a detail of a message with the start of the message being off-screen.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 
The following users thanked this post: egonotto

Online eTobeyTopic starter

  • Frequent Contributor
  • **
  • Posts: 558
  • Country: de
Re: Rigol DHO814 - capturing CAN frames
« Reply #11 on: March 20, 2024, 01:07:56 pm »
Well, try your test again and see if the list with decoded messages stays the same when you zoom in OR that the list contents is limited to what is on screen. As an extra test, try to zoom in on a detail of a message with the start of the message being off-screen.
Yes, it may not do the whole buffer, but it does so when zoomed pretty far out. The Rigol in this case is just useless, i mean really useless.

But there is one thing with that siglent: I cant find another way to scroll through the list. Hitting those scrollbuttons is not exactly easy! Is there a way to use a knob?
Never mind, saw a video someone using a mouse.  :-+
« Last Edit: March 20, 2024, 02:20:50 pm by eTobey »
"Sometimes, after talking with a person, you want to pet a dog, wave at a monkey, and take off your hat to an elephant." (Maxim Gorki)
 
The following users thanked this post: egonotto

Online Martin72

  • Super Contributor
  • ***
  • Posts: 5842
  • Country: de
  • Testfield Technician
Re: Rigol DHO814 - capturing CAN frames
« Reply #12 on: March 20, 2024, 06:28:45 pm »
Quote
Yes, it may not do the whole buffer

The number of decoded values/packets is limited, so not all of the memory is used (if there is any "left over").
In the data sheets of the 2000X and 2000X HD series, the maximum number of the respective decoder could be found, in the data sheet of the 800X HD I did not find anything about it.


 
The following users thanked this post: egonotto

Online Martin72

  • Super Contributor
  • ***
  • Posts: 5842
  • Country: de
  • Testfield Technician
 
The following users thanked this post: egonotto

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 26907
  • Country: nl
    • NCT Developments
Re: Rigol DHO814 - capturing CAN frames
« Reply #14 on: March 20, 2024, 06:50:55 pm »
@nctnico:
https://www.eevblog.com/forum/testgear/rigol-dho804-test-and-compare-thread/msg5164788/#msg5164788

OK, it was a little bit ago...
5 seconds into the video from that posting, you can see the decoded data dissapears when the start of the packet goes off-screen. The same for the list. What isn't on screen, is not in the list with packets. Very annoying if you want to relate packets to eachother.
« Last Edit: March 20, 2024, 06:57:13 pm by nctnico »
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 
The following users thanked this post: egonotto

Online eTobeyTopic starter

  • Frequent Contributor
  • **
  • Posts: 558
  • Country: de
Re: Rigol DHO814 - capturing CAN frames
« Reply #15 on: March 20, 2024, 07:09:34 pm »
Very annoying if you want to relate packets to eachother.
With the Rigol, you can see (and read) only one frame at once completely, and thats it. With the signlent its like hundrets? Thats quite an advantage there!
"Sometimes, after talking with a person, you want to pet a dog, wave at a monkey, and take off your hat to an elephant." (Maxim Gorki)
 
The following users thanked this post: egonotto

Offline bobxyz

  • Contributor
  • Posts: 13
  • Country: us
Re: Rigol DHO814 - capturing CAN frames
« Reply #16 on: March 21, 2024, 01:50:48 am »
I've been playing around with I2C decoding and I think it should be similar to CANbus.  Here's what I do:

First, set the scope mode so that pressing the horizontal timescale knob switches to Zoom mode (instead of fine adjust).  Settings -> Utility -> Setup : Fine/Zoom=Zoom
2080391-0

Next, setup Settings -> Decode : I2C, and turn on Bus Status
2080397-1

Now, hit run and adjust the horizontal time base to capture as much as possible while still seeing something in the decoded protocol area.   Note: if you go slower than 20ms/div (i.e. scrolling display), protocol decode is disabled and you'll need to go back to the previous step to turn Bus Status back on.  Hit the stop button when you have a reasonable capture.  In my case, I have two I2C bursts over 100ms (the code is running 10x per second I2C polling rate).
2080403-2

Press the horizontal time scale knob to switch into Zoom mode, then use the horizontal position knob and the time scale knob to display a burst of I2C activity
2080409-3

To view the earlier I2C burst (on the left of the capture), zoom back out using the time scale knob, then using the touchscreen, drag your finger on the zoomed display to shift it back to the first I2C burst.  Zoom in and drag as needed to view the earlier I2C burst
2080415-4

Let me know if this isn't clear enough, and more importantly, does this work for CANbus too?

-Bob
« Last Edit: March 22, 2024, 04:44:46 pm by bobxyz »
 
The following users thanked this post: egonotto

Online eTobeyTopic starter

  • Frequent Contributor
  • **
  • Posts: 558
  • Country: de
Re: Rigol DHO814 - capturing CAN frames
« Reply #17 on: March 21, 2024, 10:45:19 am »
Let me know if this isn't clear enough, and more importantly, does this work for CANbus too?

I dont know, because I joined the dark side of the force already (i already sent it back).
"Sometimes, after talking with a person, you want to pet a dog, wave at a monkey, and take off your hat to an elephant." (Maxim Gorki)
 
The following users thanked this post: egonotto

Offline bobxyz

  • Contributor
  • Posts: 13
  • Country: us
Re: Rigol DHO814 - capturing CAN frames
« Reply #18 on: March 22, 2024, 04:43:46 pm »
I went ahead and tried CAN bus decoding with a DHO814 (v1.02 firmware) and it works about the same as I2C -- you need to do a big capture then zoom in (split screen) to see the decoded values.
2081714-0 2081720-1 2081726-2

One bug I ran across is that the CAN decode doesn't work when using a 10x probe (with a 10x scope setting).  It works with a 1x probe.  It also works with a 10x probe when the scope is left on 1x and voltage levels adjusted to 1/10th (~0.3v CAN threshold).  The CAN triggering, versus the decode display, seems to work fine for both 1x and 10x.

The screen gets rather cluttered when displaying the decode list and zoomed waveforms together.
2081732-3 2081738-4

Note: CAN decode/triggering on the DHO800 series seems to have been added in January with the later firmware updates - it wasn't supported originally, but is supported now, and is included in the newer datasheet/user manual.  LIN bus is not [yet?] supported.

P.S. How are the cookies?
 
The following users thanked this post: thm_w


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf