Quest for a Logic Analzyer
The BeagleLogic is a logic analyzer based on the Beaglebone created by Kumar Abhishek, a semi-finalist of the Hackaday Prize Best Product 2015. What makes the BeagleLogic special is it uses the BeagleBone PRUs which are basically 200Mhz microcontrollers attached to the ARM CPU with shared memory. This is one thing that sets the BeagleBone apart from other SBCs. I have always been interested in the PRUs but they are a bit complicated and I’ve yet to have the time to investigate. I wish Ti would make an easy way to use them like Arduino did for microcontrollers. For me it’s more of the lack of time to learn them when I have so much going on with other projects.
- 14 Channels (13,14 require you to disable eMMC)
- 320MB Capture Buffer
- 5V tolerant inputs
- Web Interface
- Capture interfaces from the BeagleBone itself
At the moment, you have to make your own BeagleLogic. There isn’t a place to order it. In addition, you need your own Beaglebone. Hardware wise, all it provides is the ability to probe up to 5V. since the BeagleBone ADCs only accept 1.8V signals. The BeagleLogic is fairly simple to make with the help of OSHPark. With a bit of drag soldering it would be easy to hand solder as well. I opted to order a stencil from OSHStencils and use my re-flow oven just to make it look nice and professional.
OSHPark Shared Project: (Just click order now)
- You don’t need the EEPROM parts anymore but the footprints are on the PCB if needed.
- The transistor BSS138 was out of stock on Digikey so I ordered samples from Fairchild.
- I did have some issues with the cape affecting the power on boot process. It’s okay during a reset though. So you can’t attach it till after you power up.
Software is where the magic happens. There is a pre-made image for the BeagleBone with everything loaded and configured to use the BeagleLogic. It’s a recent image based on Debian instead of the older Armstrong builds. The nice thing is that it doesn’t flash the eMMC so you can leave your existing setup alone and just pop in the SD card when you need your logic analyzer. Which is another reason that makes it a good option. I can still use the BeagleBone hardware for other projects and not keep it collecting dust in between uses.
BeagleLogic is setup to be used in two ways. One is the web based interface. Just power it up and fire up your web browser. You can use the USB NIC which will put the BeagleBone at 192.168.7.2:4000 or plug in the on-board Ethernet or even use WiFi with a USB dongle. Plenty of options for connecting to it.
There aren’t many options in the web interface but it’s a great start to be expanded. In my case I couldn’t get the “Dump Raw Data” option to work, unless it saves to the BeagleBone and it’s not downloaded via the browser which is what I was expecting. If you have a I2C bus that only talks a few times a second, it can be challenging to find the data just by scrolling. There is software triggering but you can’t use it via the web interface. You can by means of the command line, which is the second way to capture your data.
The command line tools are provided by the Sigrok software suite. The output file can be exported to the desktop app, PulseView to do protocol decoding.
First you have to capture from the command line and specify how you want to trigger, which channels and the sample rate / sample limit.
[email protected]:~$ sigrok-cli -d beaglelogic -c samplerate=5m -o outputfile.sr -C P8_45,P8_46 –samples=10000 -t P8_45=e,P8_45=e
Using WinSCP on Windows you can copy the output file to your desktop and open it with PulseView. The PulseView binary for various operating systems are available.
From this point, select the protocol using the last icon on the toolbar. Finally just click the protocol tab to configure it. (This took a bit to figure out.) Select the pins that map to clock and data in this case.
If you need to, look at timing use the cursors tool.
The BeagleLogic is a great inexpensive logic analyzer especially if you have a BeagleBone laying around collecting dust as I did. (It was supposed to eventually be for a robot project but now I want to use the new BeagleBone Blue.) The BeagleLogic has a lot of potential to be a full feature tool. One big thing that is missing is the ability to connect to it directly form the host without having to copy a file each time. I haven’t tried running PulseView directly on the BeagleBone then using VNC to connect.
For More Details: BeagleBone Logic Analyzer