Some code, some chips, some transducers. What can we do with it? H*ck.. err improve it?
All hail pydicom ! It's really easy to save the images arrays as DICOM: https://github.com/kelu124/kina/blob/master/20170411-DICOM.ipynb
Et hop! That can be checked as valid DICOM on online DICOM viewers: http://www.dicomlibrary.com/meddream/?study=1.2.8126.96.36.19980043.8.1055.1.20170411215409237.878569250.8160869
Sweet! Now, how to store videos, of both raw images and scan converted images?
Did some work digging into the headers: now we know what the pattern for the beginning of the line is.. plus some info on the number of each line, for each image.
Again, more details on Jupyter on https://github.com/kelu124/kina/blob/master/20170410-CrackingHeaders.ipynb !
That'sounds à first video of small pebble like potatoes in a lass of water:
See the Jupyter notebook log for details: https://github.com/kelu124/kina/blob/master/20170404-Crunching_Video.ipynb
Having played with the probe, I know where to get the data, and what I should contain. So I basically recored it with two basic python scripts (to listen on 5002 and 5003), dumped data in hex so that people could play with it, and moved on. I analysed (Jupyter yeayy) one of the packets received and I got that:
On good track! That means there is a bit more than 3 lines (of 512 points) on a packet.
I assembled a couple of those to get the 128 lines required by the app:
And yeap! That's a full, non-scan-converted image =)
On good track!
So... basically I have found the APK for the companion app of this probe.
I ran it through a decompiler and it yields good information. I know now how to capture data, and I know the port for control, status and raw data.
But more fun as well, I have captured wireshark data and live ultrasound images: https://github.com/20E214/ToboApp/tree/master/debugging/wmpbfla126 : anyone to see what's inside?
I've had one of these probes with me for some time now. I've been stuck with developing the android app to control the probe.
Upon the wise advice from a friend, let's build a SDK first, and share the innards of this probe, both in terms of hardware and software =)