Author Topic: SDS1104X-E - Custom protocol decoder  (Read 1046 times)

0 Members and 1 Guest are viewing this topic.

Offline nejcraftTopic starter

  • Newbie
  • Posts: 2
  • Country: cz
SDS1104X-E - Custom protocol decoder
« on: August 24, 2022, 03:50:10 pm »
Hello
I was wondering if there is any way to add new program decoding capabilities?
I'd like to add the NMRA DCC protocol. I could see it done in 2 ways:
 - hacking the firmware and add completely new option - I presume COOL but HARD
 - creating just a pc program that reads the data off of osciloscope and does the magic on its own - Easier but still not super easy

I know there were some attempts to fully hack and RE the firmware, but wasn't able to find any 100% successfull, the cramfs doesn't seem to contain the app, so there's not point to tap in for me.
Similarly there are multiple different scope viewers which could be misused for the custom protocol decoding on PC, but Iam not sure. Maybe someone tried similar stuff thru some Open Source app?

Cheers
 

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6213
  • Country: es
Re: SDS1104X-E - Custom protocol decoder
« Reply #1 on: August 25, 2022, 07:26:49 am »
Why start with the most complex route? Just get a cheap 24MHz logic analyzer on ebay/Aliexpress.
Sigrok doesn't seem to have DCC decoder, but Saelae Logic does.
Also there's a Decoder for arduino.

Remember the inputs can't take more than 5V, DCC uses 12-22V so you'll need some circuitry to protect them.
A 22K series resistor with a 3.3...4.7V zener should to the job, you can also use a simple voltage divider.
« Last Edit: August 25, 2022, 07:28:48 am by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline nejcraftTopic starter

  • Newbie
  • Posts: 2
  • Country: cz
Re: SDS1104X-E - Custom protocol decoder
« Reply #2 on: August 25, 2022, 07:30:06 am »
Yeah,
The 5V and the fact that I'd have to have PC clouse enough made me question if I could use the scope somehow, even if just as a remove voltage sampler.
I have those cheap chinese Salae knockoffs, but they are not pleasant to use unlike the scope, which is pretty handy.
 

Online Hydron

  • Super Contributor
  • ***
  • Posts: 1036
  • Country: gb
Re: SDS1104X-E - Custom protocol decoder
« Reply #3 on: August 25, 2022, 08:16:04 am »
Maybe check out if sigrok can do the job for you? Can always add instruments if needed as it's open source.
 
The following users thanked this post: nejcraft


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf