Author Topic: DS1054Z Rs232 decoding  (Read 8626 times)

0 Members and 2 Guests are viewing this topic.

Offline nealfoxTopic starter

  • Contributor
  • Posts: 11
  • Country: us
DS1054Z Rs232 decoding
« on: February 28, 2018, 03:04:57 pm »
I am having problems performing Rs232 decoding with my new DS1054Z. While I have years of experience using analog scopes I’m new to digital scopes and protocol decoding. So, I’m trying to determine is I have a problem with my scope or with me.

I am generating a serial stream using an Arduino Uno and capturing it as a single-shot. As I start examining it everything is fine but at some point, as I change the horizontal position the decode breaks up. Also sometimes changing the timebase effects the decode.

 

Offline m_t

  • Contributor
  • Posts: 11
  • Country: de
    • GitHub
Re: DS1054Z Rs232 decoding
« Reply #1 on: February 28, 2018, 03:39:44 pm »
Unfortunately, there is no way to fix this. The RS232, I2C and SPI decoders on the 1054Z all stop working if your timebase setting is too large. Also, the list view only decodes the waveform currently shown on the display. This can be pretty annoying if you have to "scroll" through a long single shot capture.
 
The following users thanked this post: nealfox

Offline Fungus

  • Super Contributor
  • ***
  • Posts: 17248
  • Country: 00
Re: DS1054Z Rs232 decoding
« Reply #2 on: February 28, 2018, 03:58:12 pm »
Yep. It has a lot of limitations.

It's good for finding out if RS232 is working correctly or not but it's not a serious tool for hacking or examining long data sequences.

(Use your Arduino for that...)

 

Offline GeorgeOfTheJungle

  • Super Contributor
  • ***
  • !
  • Posts: 2699
  • Country: tr
Re: DS1054Z Rs232 decoding
« Reply #3 on: February 28, 2018, 04:03:41 pm »
That's correct, but in the 2nd image the rigol should have lost only the first "o" in the "o-p-q..." sequence, not everything up to the "A-B..." as it did, no?
The further a society drifts from truth, the more it will hate those who speak it.
 

Offline nealfoxTopic starter

  • Contributor
  • Posts: 11
  • Country: us
Re: DS1054Z Rs232 decoding
« Reply #4 on: February 28, 2018, 04:27:16 pm »
That was my thought.  Both screen shots are from the same single-shot capture.  So the data is the same and just turning the position control shouldn’t have affected it at all.
 

Offline GeorgeOfTheJungle

  • Super Contributor
  • ***
  • !
  • Posts: 2699
  • Country: tr
Re: DS1054Z Rs232 decoding
« Reply #5 on: February 28, 2018, 04:48:56 pm »
Never thought about it before, but now I wonder if a real UART would also take/need so many chars to get in sync again... Who knows? Anybody?
The further a society drifts from truth, the more it will hate those who speak it.
 

Offline Karel

  • Super Contributor
  • ***
  • Posts: 2267
  • Country: 00
Re: DS1054Z Rs232 decoding
« Reply #6 on: February 28, 2018, 05:07:22 pm »
One possibility is to use DSRemote. It will do the serial protocol decoding offline using the whole internal memory of your scope (12 or 24Mpts).
It doesn't suffer from the fact that the scope fails to decode correctly when the start of the visible trace is in the middle of a character.



 
The following users thanked this post: nealfox, GeorgeOfTheJungle

Offline Adrian_Arg.

  • Frequent Contributor
  • **
  • Posts: 447
  • Country: ar
Re: DS1054Z Rs232 decoding
« Reply #7 on: February 28, 2018, 05:55:12 pm »
for windows is there any software?
 

Offline nealfoxTopic starter

  • Contributor
  • Posts: 11
  • Country: us
Re: DS1054Z Rs232 decoding
« Reply #8 on: February 28, 2018, 05:56:37 pm »
This is my first attempt at serial decoding and I didn’t know what to expect. I naively assumed that I would be able to simply scroll through the entire serial message. I haven’t even started to explore DSRemote so I guess that’s my next project. Thanks everybody for your help.
Neal
 

Offline Karel

  • Super Contributor
  • ***
  • Posts: 2267
  • Country: 00
Re: DS1054Z Rs232 decoding
« Reply #9 on: February 28, 2018, 06:50:43 pm »
for windows is there any software?

If you want you can use DSRemote on windows by using VirtualBox.
 

Offline Fungus

  • Super Contributor
  • ***
  • Posts: 17248
  • Country: 00
Re: DS1054Z Rs232 decoding
« Reply #10 on: March 01, 2018, 12:36:22 am »
This is my first attempt at serial decoding and I didn’t know what to expect. I naively assumed that I would be able to simply scroll through the entire serial message.

It's a natural enough assumption.

However, you'll find that almost everything that these DSOs do is based only on the data shown on screen. They don't have the processing power to work on the entire 24Mb internal buffer for their calculations (and usually not even a direct access to the sample memory...)

Serial decoding simply follows this pattern of using the on-screen data. It's the way things work.

 
The following users thanked this post: nealfox

Offline LaurentR

  • Frequent Contributor
  • **
  • Posts: 536
  • Country: us
Re: DS1054Z Rs232 decoding
« Reply #11 on: March 01, 2018, 06:46:16 am »
If you are going to be playing with Arduino-type microcontrollers, do yourself a favor and get at least a cheap USB logic analyzer (e.g. a Saleae clone - or a real one if you have the budget)

They are able to record very long streams of UART/i2c/SPI and decode with ease (and have typically have many more decoders than any scope). Some can look at analog signals at the same time. You can also cross-trigger with the DS1054Z.

The DS1054Z is barely usable for serial decode and even better scopes that decode from full memory are limited in what they can acquire and for how long vs. external USB LAs. Obviously, the USB LAs have much lower acquisition rates, but that tends to be enough for basic serial protocols.

 
The following users thanked this post: nealfox

Offline Karel

  • Super Contributor
  • ***
  • Posts: 2267
  • Country: 00
Re: DS1054Z Rs232 decoding
« Reply #12 on: March 01, 2018, 07:34:38 am »
If you are going to be playing with Arduino-type microcontrollers, do yourself a favor and get at least a cheap USB logic analyzer (e.g. a Saleae clone - or a real one if you have the budget)

They are able to record very long streams of UART/i2c/SPI and decode with ease (and have typically have many more decoders than any scope). Some can look at analog signals at the same time. You can also cross-trigger with the DS1054Z.

The DS1054Z is barely usable for serial decode and even better scopes that decode from full memory are limited in what they can acquire and for how long vs. external USB LAs. Obviously, the USB LAs have much lower acquisition rates, but that tends to be enough for basic serial protocols.

The problem with logic analyzers is, is that they use 1-bit ADC's. You risk to loose a lot of time by searching for a logic error
in your sourcecode while in reality the problem is caused by bad signal integrity...
 

Offline GeorgeOfTheJungle

  • Super Contributor
  • ***
  • !
  • Posts: 2699
  • Country: tr
Re: DS1054Z Rs232 decoding
« Reply #13 on: March 01, 2018, 08:04:07 am »
The problem with logic analyzers is, is that they use 1-bit ADC's. You risk to loose a lot of time by searching for a logic error in your sourcecode while in reality the problem is caused by bad signal integrity...

Exactly!
The further a society drifts from truth, the more it will hate those who speak it.
 

Offline Fungus

  • Super Contributor
  • ***
  • Posts: 17248
  • Country: 00
Re: DS1054Z Rs232 decoding
« Reply #14 on: March 01, 2018, 08:16:29 am »
The problem with logic analyzers is, is that they use 1-bit ADC's. You risk to loose a lot of time by searching for a logic error in your sourcecode while in reality the problem is caused by bad signal integrity...

Exactly!

And ... that's what the DS1054Z is for!!

The serial decode on the DS1054Z isn't much use for decoding huge amounts of information but it's plenty good enough to check out the signal integrity.
 

Offline Karel

  • Super Contributor
  • ***
  • Posts: 2267
  • Country: 00
Re: DS1054Z Rs232 decoding
« Reply #15 on: March 01, 2018, 08:48:49 am »
The problem with logic analyzers is, is that they use 1-bit ADC's. You risk to loose a lot of time by searching for a logic error in your sourcecode while in reality the problem is caused by bad signal integrity...

Exactly!

And ... that's what the DS1054Z is for!!

The serial decode on the DS1054Z isn't much use for decoding huge amounts of information but it's plenty good enough to check out the signal integrity.

And that's why DSRemote can be usefull.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf