Author Topic: Reverse engineering FNIRSI-5012H  (Read 110095 times)

0 Members and 1 Guest are viewing this topic.

Offline ataradovTopic starter

  • Super Contributor
  • ***
  • Posts: 11234
  • Country: us
    • Personal site
Re: Reverse engineering FNIRSI-5012H
« Reply #75 on: November 19, 2019, 05:17:00 pm »
The trigger code now works for 100% of samples at 125 MSPS. So i don't think this would be an issue.
Alex
 
The following users thanked this post: Kean, mg3100

Offline cliffyk

  • Frequent Contributor
  • **
  • Posts: 358
  • Country: us
    • PaladinMicro
Re: Reverse engineering FNIRSI-5012H
« Reply #76 on: November 20, 2019, 12:47:57 am »
The trigger code now works for 100% of samples at 125 MSPS. So i don't think this would be an issue.

Alex, let me first commend you on your knowledge and diligence!

I have wondered though, has anyone done a simple Nyquist "flat-line" test of the 5012H sample rate?  I would--however I do no longer have a 500 MHz signal source. As I am certain you are aware, a simple test of feeding a DSO a signal of a frequency equal to the DSO's sampling rate will result in a flat line trace. 499 MHz would alias to 1 MHz as would 501 MHz.

If a 500 MHz input doesn't cause a flat line display it is not sampling at 500 MSps.
-cliff knight-

paladinmicro.com
 

Offline ataradovTopic starter

  • Super Contributor
  • ***
  • Posts: 11234
  • Country: us
    • Personal site
Re: Reverse engineering FNIRSI-5012H
« Reply #77 on: November 20, 2019, 12:53:49 am »
Its clock is derived from a cheap crystal oscillator. Measuring any sort of timing performance is a futile effort. We know "nominal" sample rate because we feed it to the ADC and we can measure it. There is no need for roundabout methods. Also, its front-end will not let 500 MHz through. There is 200 MHz buffer op-amp.

The 125 MSPS is achieved by interleaving 2 channels, so matching and timing between the odd and event samples in this mode is also very questionable. 

Remember, this will never be a real measurement equipment.
Alex
 

Offline ataradovTopic starter

  • Super Contributor
  • ***
  • Posts: 11234
  • Country: us
    • Personal site
Re: Reverse engineering FNIRSI-5012H
« Reply #78 on: November 20, 2019, 07:33:58 am »
Here is a schematic of the so called front-end of this scope. None of the capacitor values are known, obviously.

Transistors are part of the optocouplers.

The paired transistors are the same optocouplers, but they are driven at the same time (LEDs on the other side are in series). If anybody knows what is going on with those paired transistors, please chime in.
Alex
 

Offline lordium

  • Regular Contributor
  • *
  • Posts: 61
  • Country: cn
Re: Reverse engineering FNIRSI-5012H
« Reply #79 on: November 20, 2019, 08:25:54 am »
Seems like they just short the 1.3M to get easier ranges to work with (sure it's bjts, and not mosfets?).   x 0.9, 0.3, 0.1 ,0.05, 0.025, 0.01 (close enough)
 
The following users thanked this post: WattsThat

Offline BravoV

  • Super Contributor
  • ***
  • Posts: 7547
  • Country: 00
  • +++ ATH1
Re: Reverse engineering FNIRSI-5012H
« Reply #80 on: November 20, 2019, 08:32:14 am »
The paired transistors are the same optocouplers, but they are driven at the same time (LEDs on the other side are in series). If anybody knows what is going on with those paired transistors, please chime in.

Assuming those are CPC1002, I think its optomos relay / mosfet switch.

CMIIW  :-//
« Last Edit: November 20, 2019, 08:33:53 am by BravoV »
 

Offline ataradovTopic starter

  • Super Contributor
  • ***
  • Posts: 11234
  • Country: us
    • Personal site
Re: Reverse engineering FNIRSI-5012H
« Reply #81 on: November 20, 2019, 08:38:13 am »
CPC1002 shorts the AC/DC capacitor. The range switches are PC817 optocouplers.

And those pairs are controlled separately for different ranges.

Each transistor or pair of transistors represent a separate volts/div setting.
« Last Edit: November 20, 2019, 08:40:53 am by ataradov »
Alex
 

Offline exile

  • Newbie
  • Posts: 5
  • Country: se
Re: Reverse engineering FNIRSI-5012H
« Reply #82 on: November 20, 2019, 03:04:11 pm »
I think it has to do with Emitter-collector voltage quite low. (zenerdoid effect)
And I think it starts to affect before 6volt as the data sheet says. By coupling 2 in each direction it can withstand higher voltage.

That's what I think, but I can be wrong.
 

Offline magic

  • Super Contributor
  • ***
  • Posts: 6755
  • Country: pl
Re: Reverse engineering FNIRSI-5012H
« Reply #83 on: November 20, 2019, 07:54:13 pm »
Yeah, given that they are in antiseries I would guess it's something to do with reverse breakdown.

And FYI, the opamp is configured for unity gain with low series resistance, so per the DS it's supposed to have massive gain peaking at 300MHz and -3dB point at 450MHz. Not sure why they did that.
 

Offline splin

  • Frequent Contributor
  • **
  • Posts: 999
  • Country: gb
Re: Reverse engineering FNIRSI-5012H
« Reply #84 on: November 21, 2019, 12:30:28 am »
And FYI, the opamp is configured for unity gain with low series resistance, so per the DS it's supposed to have massive gain peaking at 300MHz and -3dB point at 450MHz. Not sure why they did that.

That graph is for .1Vpp output. For a full scale, 1Vpp ADC input, slew rate distortion will start at about 35MHz according to the graph on page 8. However, unusually, the graph also implies that the slew rate is a function of the output signal level - approx 65V/us @ 5Vpp rising to 110V/us at 1Vpp and nearer 300V/us at 100MHz which is closer to the datasheet 300 to 360V/us values. (The latter are quoted for a gain of 2 but the gain wouldn't normally affect slew rate significantly).

So perhaps slew rate won't actually be a limit until 150MHz or above for signals < .9Vpp. Does the graph suggest an unusual compensation scheme in the amp or is the graph suspect?
 

Offline magic

  • Super Contributor
  • ***
  • Posts: 6755
  • Country: pl
Re: Reverse engineering FNIRSI-5012H
« Reply #85 on: November 21, 2019, 08:08:11 am »
Probably the plot is right, and all plots are for 5V supply and gain of 2 so you don't even know what will happen at unity gain at 3.3V. But it's unlikely to be anything good indeed, this chip is simply too slow and quirky for the claimed BW. (Assuming the ADC really is 1Vpp full scale, I didn't follow the thread).

I only remarked about the possibility of getting any sort of 500MHz signal in there at all ;)
 

Offline OwO

  • Super Contributor
  • ***
  • Posts: 1250
  • Country: cn
  • RF Engineer.
Re: Reverse engineering FNIRSI-5012H
« Reply #86 on: November 21, 2019, 10:18:52 am »
ADC might be the MXT2088: https://item.taobao.com/item.htm?spm=a230r.1.14.19.2eea1df5ep0STN&id=590948654001&ns=1&abbucket=11#detail

I just searched for "AD9288" + the Kanji for "substitute" on taobao and that turned up. More digging found this page which lists more ADCs: http://www.mxtronics.com/n107/n808/n809/n815/index.html

Unfortunately I couldn't find most of those on taobao, especially the 1GSPS+ ones. Maybe they are all sold under the ADI/TI part numbers instead.
« Last Edit: November 21, 2019, 10:26:57 am by OwO »
Email: OwOwOwOwO123@outlook.com
 
The following users thanked this post: edavid

Offline ataradovTopic starter

  • Super Contributor
  • ***
  • Posts: 11234
  • Country: us
    • Personal site
Re: Reverse engineering FNIRSI-5012H
« Reply #87 on: November 21, 2019, 04:38:18 pm »
Thanks for this information. Interestingly, if you search AliExpress for "MXT2088", it will come up with a bunch of listings for "AD9288" that otherwise do not mention MXT2088 at all. So it looks like there some hidden connection/keywords in their system.

It is also good. Because while it is obvious  that all those AD9288 are fakes, they are quite a bit cheaper than the original. And for applications like this scope it really makes no difference.
Alex
 

Offline mg3100

  • Newbie
  • Posts: 9
  • Country: nl
Re: Reverse engineering FNIRSI-5012H
« Reply #88 on: November 22, 2019, 07:47:19 pm »
Quote
that all those AD9288 are fakes

At least they seem to function  :D.

Last month I ordered  a couple of P-Channel power mosfets and even though they looked genuine and had all the markings in the right place
I couldn't get them to function. In the end they turned out to be N-Channel mosfets  :'( ... and of course no reply from the seller.
 

Offline ataradovTopic starter

  • Super Contributor
  • ***
  • Posts: 11234
  • Country: us
    • Personal site
Re: Reverse engineering FNIRSI-5012H
« Reply #89 on: November 22, 2019, 07:49:18 pm »
If there is one item you should never buy from China, it would be power mosfets. It seems like they are the most faked item ever.
Alex
 
The following users thanked this post: boB, dave528

Offline mg3100

  • Newbie
  • Posts: 9
  • Country: nl
Re: Reverse engineering FNIRSI-5012H
« Reply #90 on: November 22, 2019, 08:07:49 pm »
I hope LCSC sends me genuine gd32f407vet6  :D :D
 

Offline ataradovTopic starter

  • Super Contributor
  • ***
  • Posts: 11234
  • Country: us
    • Personal site
Re: Reverse engineering FNIRSI-5012H
« Reply #91 on: November 25, 2019, 01:19:51 am »
I've implemented the basic version of the triggering setup. Basically a single trigger. I start the ADC DMA and run the trigger detection code. After the trigger is detected, I wait for ~64K more samples and stop the capture.

The issue is that on continuous AC signals the trigger is detected immediately, so there is no pre-trigger history. So it looks like I just need to collect 64K samples without running the trigger detection code, and then start  it. I guess it is fine, since this is really only an issues for periodic signals, and they will hopefully continue running.

A bigger issue is that current trigger detection code actually just detects that sample is above the threshold, not the moment of crossing. So if trigger detection code starts when the signal is already higher than the trigger, it marks the first sample as the trigger point. It is not a big deal, but will cause some loss of performance.
Alex
 

Offline dmendesf

  • Frequent Contributor
  • **
  • Posts: 320
  • Country: br
Re: Reverse engineering FNIRSI-5012H
« Reply #92 on: November 25, 2019, 02:05:43 am »
Trigger needs to have a state. Initial state is "non-triggered". For each sample in the buffer you do the trigger logic (for a rising edge trigger, logic is "if last sample is below trigger value and actual sample is equal or bigger than sample value, then state is triggered").
 

Offline ataradovTopic starter

  • Super Contributor
  • ***
  • Posts: 11234
  • Country: us
    • Personal site
Re: Reverse engineering FNIRSI-5012H
« Reply #93 on: November 25, 2019, 02:09:13 am »
Well, yes, I know how triggers are working in general. In this case we are extracting the last bit of performance with SIMD instructions, so it is not that trivial. Looking at the last sample every cycle is not an option.

So it looks like I would have to look for the opposite condition and then for the real trigger condition. It should not add a lot of instructions. I'm a bit distracted at the moment to think hard about it. I'll figure it out tomorrow.
« Last Edit: November 25, 2019, 02:11:49 am by ataradov »
Alex
 

Offline EL-TRONIC

  • Newbie
  • Posts: 4
  • Country: cs
Re: Reverse engineering FNIRSI-5012H
« Reply #94 on: November 26, 2019, 06:14:03 am »
I bought FNIRSI-5012H and I got this today...
Please see images, is there any way to change language?
Maybe new firmware? Where to download?
Thanks in advance...
 

Offline ataradovTopic starter

  • Super Contributor
  • ***
  • Posts: 11234
  • Country: us
    • Personal site
Re: Reverse engineering FNIRSI-5012H
« Reply #95 on: November 26, 2019, 06:15:58 am »
Please see images, is there any way to change language?
Maybe new firmware? Where to download?
There are no images attached.  Also, there is no way to download or upgrade the firmware.
Alex
 

Offline EL-TRONIC

  • Newbie
  • Posts: 4
  • Country: cs
Re: Reverse engineering FNIRSI-5012H
« Reply #96 on: November 26, 2019, 06:23:37 am »
879118-0879122-1
 

Offline EL-TRONIC

  • Newbie
  • Posts: 4
  • Country: cs
Re: Reverse engineering FNIRSI-5012H
« Reply #97 on: November 26, 2019, 06:24:50 am »
Is there any settings to change language?
Thanks
 

Offline ataradovTopic starter

  • Super Contributor
  • ***
  • Posts: 11234
  • Country: us
    • Personal site
Re: Reverse engineering FNIRSI-5012H
« Reply #98 on: November 26, 2019, 06:28:31 am »
I don't see any settings to change the language. So it looks like you are stuck with Chinese. Thankfully there are not that many menus you actually need to use past the initial setup.
Alex
 

Offline EL-TRONIC

  • Newbie
  • Posts: 4
  • Country: cs
Re: Reverse engineering FNIRSI-5012H
« Reply #99 on: November 26, 2019, 06:35:45 am »
Thanks Alex
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf