Beagle USB Protocol Analyzer - Opinions?
geo_leeman
Posts: 190
I've got some old hardware I'm trying to reverse engineer the communications protocol on (it's an old cryogenic magnetometer). It's serial comms between the current control computer and the magnetometer, demagnetizer, and sample handler unit. There are serial to USB dongles connecting each unit to the computer. I'm planning on upgrading all of the control software and the protocol documentation is..... incomplete at best. It's all ASCII characters it appears though. Any opinions on USB protocol analyzers to sniff on this stuff? I want to use hardware as getting a software sniffer on the computer could be problematic. Does anyone have a unit they like? I've been looking at the Beagle 12: https://www.totalphase.com/products/beagle-usb12/ and it seems pretty slick. All of the comms are sub 115200 baud, most 9600.
Comments
-Phil
As Phil says, you do not need a USB parsing system.
A logic-analyser that includes a 2 channel Serial (UART) decoder could be useful, but I'd experiment with something like a FT2232H.
That allows dual serial RX, so you can sniff on serial both ways, and the HS-USB allows time-stamps to around 125us, which may be enough to 'line up' any Send and Respond packets. (you have low baud rates)
Once you have that, you can start to replace the 'send' packets with your own, sent via FT2232H, and confirm you get the same responses, then vary the sends to see if there are hidden commands that could be useful.
Does this have a calibrate/setup mode that you need to include ?
A system where you can start to Transmit test commands, could be useful.
What do you ultimately want to run your new host code on ?
In another forum, I came across this link - SW for $10/month..
https://sysprogs.com/w/turning-the-cypress-super-speed-explorer-kit-into-a-continuous-200mss-logic-analyzer/
works with this Superspeed USB module, so they claims 200Msps - hard to beat raw USB speed...
https://www.digikey.com/products/en?keywords=CYUSB301X $46
or, at the very bottom end, you have eBay 24MHz capture rate models ~ $10
https://www.ebay.com/itm/Blesiya-24MHz-8CH-USB-Logic-Analyzer-for-Arduino-Debug-SPI-I2C-UART/253548115450
or mid-scale 16M sps and 3M analog.. sub $30
https://www.ebay.com/itm/I2C-SPI-CAN-Uart-LHT00SU1-Virtual-Oscilloscope-Logic-Analyzer-KL/223004596158
You would probably want to check the software before buying on those...
I really would like a plug-in solution to put in line with the current hardware without requiring any opening of equipment. I will have a rather short time in the lab with it and speed is more essential.
That makes the EZ-Tap Pro you linked above quite a good solution. Can you download and check the SW before hitting buy ? Especially around logging to files.
Very old systems might be using 9-bit UART modes, and/or HW handshakes lines as MUXes, so a time stamp is a good solid base.
If you need something a PC can access, with standard DB9 connectors, you could add to the tool box items like
XR22802IL56-0A-EB (Dual UART, HS-USB)
XR21V1414IM-0B-EB (FS_USB, Quad UART, 9 bit mode)
XR21V1412IL-0B-EB (FS_USB, dual UART, 9 bit mode)
XR21B1422IL40-0A-EVB as above, but may have enough patch-panel stuff to loop through ?
XR21V1410IL-0B-EB (FS_USB, single UART, 9 bit mode)
CP2102N-EK (FS_USB, single UART)