Hantek DSO-5200A debugging - Page 1
Forum section: electronics / testgear

author: frenky
author_rank: Unknown
timestamp: August 02, 2012, 07:49:17 pm
content: Hi guys.I hope you will be able to help me with this.Some time ago I bought USB oscilloscope Hantek DSO-5200A and it worked great.After a year of rest I tried to connect it on my new pc with WIN 7 with no success.The red led kept blinking and windows software freezed if I connected the scope over usb.So I tried to connect to my old PC which already had drivers and software on.Same thing happened here, software would freeze if I connected scope to computer so it was not a driver problem.I have found on some forum (lost it now) that it is firmware problem and that I should delete the log file in the DSOs system.So I took the scope apart to find serial port header. But no luck. I have found the chip with UART (Cypress CY7C68013A) but I can't find where the header is.I guess I could solder directly on pins of the chip but I don't have hot air station.If any of you took one of this DSOs apart and found the UART please help.Info about Hantek DSO-5200A:http://sigrok.org/wiki/Hantek_DSO-5200AMy photos (too big for embedding):Top:https://sites.google.com/site/colorcodeshtml/home/DSO-5200A_top_500K.jpgBottom (you can see CY7C68013A here):https://sites.google.com/site/colorcodeshtml/home/DSO-5200A_bottom_500K.jpgUART on CY7C68013A:https://sites.google.com/site/colorcodeshtml/home/chip-usb-uart.PNGYou can see full resolution (4400x200) pictures here:https://sites.google.com/site/colorcodeshtml/homePlease help!Bye,Frenky

author: zaoka
author_rank: Frequent Contributor
timestamp: August 03, 2012, 12:27:50 am
content: (what camera do you use to take this good picture?)

author: frenky
author_rank: Unknown
timestamp: August 03, 2012, 06:12:20 am
content: I used Canon 20D + Canon EF 50mm f/1.8 II(Aperture: F10, ISO 100, mirror lockup, timer)Two lamps with white CFLs from each side were used for less shadows.To avoid any vibrations (and blurred photo) I set mirror lockup and timer.I shot the left and right part of PCB separate for less perspective distortion.Later in GIMP I stitched both parts together and applied sharpening filter.

author: biot
author_rank: Regular Contributor
timestamp: August 03, 2012, 10:53:01 am
content: Quote from: frenky on August 02, 2012, 07:49:17 pmThe red LED blinking just means the firmware is loaded. It blinks green while acquiring data.Quote from: frenky on August 02, 2012, 07:49:17 pmUnlikely, as the DSO-5200A really doesn't have anything like local storage, except for a small EEPROM (which doesn't have anything like a filesystem on it). It doesn't have an operating system, only a very small firmware to interface the internal chips to the host PC.You likely read that about the Hantek DSO-5102, which is a completely different architecture -- something Hantek purchased, not designed. That system does indeed have some problem that can be resolved by deleting some file on its filesystem, via a serial port.As to what's wrong with your DSO-5200A, I have no idea.

author: PA0PBZ
author_rank: Super Contributor
timestamp: August 03, 2012, 11:45:54 am
content: When you say "the software freezes", do you mean the DSO software?

author: frenky
author_rank: Unknown
timestamp: August 03, 2012, 12:28:30 pm
content: @PA0PBZ:Yes. When I start the DSO software it freezes before it gets to show main window. If I unplug usb, then then app resumes to load normally.If I replug usb the app freezes again.@biot:Thank you for explanation. Could it be that if I do connect to DSO trough UART that I could see "something" to help me fix it?If you look at arduino. It does not have an OS but if you load a sketch that supports serial communication then you can "talk" to arduino via UART...Or am I completely wrong?

author: PA0PBZ
author_rank: Super Contributor
timestamp: August 03, 2012, 12:52:04 pm
content: Quote from: frenky on August 03, 2012, 12:28:30 pmIf, like biot says, the blinking red LED indicates that the firmware is loaded, does that mean that it starts to blink when you start the DSO software? I assume that the firmware is uploaded by the DSO software.If that is so, it should mean that the cypress USB chip is still working, but that something is wrong in the communication between the DSO windows software and the main chip.I see that Hantek has an SDK on their website with some examples in VB and VC. Maybe that way you will be able to find out where things are going wrong.

author: biot
author_rank: Regular Contributor
timestamp: August 03, 2012, 01:12:31 pm
content: Quote from: frenky on August 03, 2012, 12:28:30 pmThere is nothing in that FX2 microcontroller's firmware that listens on a UART port to take commands. The only commands it takes are via USB.

author: frenky
author_rank: Unknown
timestamp: August 03, 2012, 01:31:52 pm
content: Thank you both.I will try with SDK. I'm a developer so it shouldn't be a problem...Will also try to get it running in Linux with some opensource apps (Digital Soda, HantekDSO, OpenHantek...)

author: frenky
author_rank: Unknown
timestamp: August 03, 2012, 05:16:52 pm
content: I run the SDK code in VS6 and here are the results:When I run the sdk example VisualStudio stops working at call "sdSetTriggerAndSampleRate".This is the code:Code:InitializeVariables'Open DeviceResult = sdSearchDevice(DeviceIndex) 'Device found, Result=1If Result = 0 ThenMsgBox ("DSO not found!")EndEnd IfMainForm.Visible = True'initialize hardwareResult = sdGetLevel(DeviceIndex, level(0)) 'Device index is 0Result = sdSetTriggerAndSampleRate(DeviceIndex, TriggerSlope, ETS, Controlstate, PulseTrigger, PulseTriggerMode, PulseWidth) 'Stops responding !Result = sdSetFilt(DeviceIndex, FiltAndTrigger)Result = sdSetVoltageAndCoupling(DeviceIndex, Ch1Voltage, Ch2Voltage, Ch1_ACDC, Ch2_ACDC, Controlstate)Result = sdSetOffset(DeviceIndex, levers, Ch1Voltage, Ch2Voltage, TriggerSource, level(0))Result = sdCaptureStart(DeviceIndex)Result = sdTriggerEnabled(deivceindex)Initialization = FalseMainForm.GetDataLoop.Enabled = TrueSo first two calls trough SDK5200A.dll go fine (sdSearchDevice, sdGetLevel) and return "1" as result.But call to "sdSetTriggerAndSampleRate" gets no response and app stops responding until I unplug usb.I'm not really sure where to go from here...

author: PA0PBZ
author_rank: Super Contributor
timestamp: August 03, 2012, 06:08:30 pm
content: No, that's not very helpful at allYou could try to change some variables in the controlstate to see if that makes a difference, but I think it's time for a teardown!Just guessing here of course, but it looks like the FPGA or whatever is in there is not responding, so that makes me think of a power or clock missing.Get your scope and multimeter out and poke around... Would be nice if you could get the heatsink off and find out what device it is, but at least there must be some recognisable traces of power and clock circuitry.

author: frenky
author_rank: Unknown
timestamp: August 03, 2012, 06:36:40 pm
content: Quote from: PA0PBZ on August 03, 2012, 12:52:04 pmJust to clarify the red blinking led. Led blinks red all the time when DSO has power (via usb).This does not change in any way when I run the DSO software or SDK example.If I remember correctly when the scope was working ok, you could hear a click of relay in DSO when you started the PC software and the led turned green.

author: PA0PBZ
author_rank: Super Contributor
timestamp: August 03, 2012, 06:39:23 pm
content: Thanks for clarifying that. Since the software is able to find the DSO I still think that the cypress USB part is OK. Time for hardware...

author: biot
author_rank: Regular Contributor
timestamp: August 03, 2012, 07:58:15 pm
content: Quote from: frenky on August 03, 2012, 06:36:40 pmThe relays control the amplifiers, coupling and trigger source. The software just initializes it to a default state when it starts, which usually involves various relays changing state. It doesn't have to happen though, the scope could already be in the right state.

author: qwer88
author_rank: Newbie
timestamp: August 04, 2012, 11:51:42 pm
content: ei saa aru

author: Unknown
author_rank: Unknown
timestamp: August 05, 2012, 01:17:38 am
content: Quote from: qwer88 on August 04, 2012, 11:51:42 pmJe ne comprends pas.

author: VINKU
author_rank: Newbie
timestamp: August 14, 2012, 11:40:04 am
content: Hey Everybody,I have a DSO-2150 which works fine for 2 minutes and then the red light starts glowing and the software freezes. I am connecting it to the output of a comparator (5V max).Can anybody help me out?Thanks

author: kingjay1
author_rank: Newbie
timestamp: August 15, 2012, 06:35:30 am
content: I am not interested in USB oscilloscopeBecause the USB oscilloscope need send the waveform information to computer by USB cable or others interface.It's a waste of time.So, the refresh rate is what worries me most.

author: ucz
author_rank: Newbie
timestamp: November 08, 2012, 08:35:21 pm
content: I don't recognise symbols on chips, what is analog to digital converters and what is a chip (fpga?) under heatsink.Could anyone list symbols of this elements?

author: Munsterfield
author_rank: Newbie
timestamp: January 07, 2019, 10:27:48 pm
content: I know this is a really old thread, but, sadly my DSO-5200 oscilloscope started doing the same thing today!It blinks Red like normal when it's plugged in, but then when the software is launch, it hangs on the launch screen until I unplug it, and then the software says that it's searching for the device. The device always blinks Red until it is unplugged.It does blink green only once though, when the software is trying to connect to it.Was anyone able to solve this issue?