Serial Port Sniffer Open Source

 

From DP

Serial port monitor from Eltima. This software is able to sniff and monitor all serial port activity in a system. Works with x64 OS. But you asked for freeware.

Jump to: navigation , search
  • 1First connection
  • 2Operating modes
  • 3LED indicators
    • 3.1ACT and PWR LED
  • 4Pin numbering scheme

First connection

Assign .inf on Windows

  • The OLS connects to a computer as a USB virtual serial port in normal operating mode. The first time you plug it in, give Windows the .inf file from a firmware archive to assign the correct drivers.

Get a software client

Download and install a logic analyzer client. There are several, but we recommendJawi's SUMP fork. SUMP requires Java, get it here. More about using SUMP in Logic Sniffer 102.

Operating modes

A PIC microcontroller is the interface glue for the Logic Sniffer. It has three operating modes:

  1. Normal - a SPI to USB bridge for the SUMP logic analyzer (appears as a serial port)
  2. ROM Updater - upload a new FPGA bitstream to the ROM chip (appears as a serial port)
  3. Bootloader - update the main firmware in the PIC (appears as a USB HID device)

Normal mode

The PIC usually operates in a transparent USB->SPI bridge that connects the SUMP build in the FPGA with the SUMP client on a computer. This is the default startup mode after a reset or power-up. Press the reset button to enter normal operating mode from any other mode.

The ACT LED will blink while the FPGA loads the bitstream contained in the ROM chip. If the FPGA doesn't load after a few seconds, because of an error or blank ROM chip, the PIC will automatically enter ROM update mode and the ACT LED will illuminate (see ROM updater below).

The ACT LED will turn off when the FPGA is configured and ready. The OLS then enumerates as a USB virtual serial port device. The first time you plug it in, you may need to feed Windows the .inf file in the project archive to assign driver to the device.

Once enumerated, the ACT LED blinks to indicate any USB activity.

ROM Updater

Serial Port Sniffer Open Source

ROM updater mode is used to program a new FPGA bitstream into the flash storage chip.This feature lets us release FPGA design updates that can be loaded over the USB interface.

To enter ROM update mode, press the reset button while holding the update button. The PIC will also automatically enter ROM update mode if the FPGA doesn't load correctly because of an error or blank ROM chip. The ACT LED will light in this mode.

The OLS enumerates as a USB virtual serial port in ROM update mode, this is the same connection type as the normal operating mode. The first time you plug it in, give Windows the .inf file from the project folder to assign the correct drivers to the device.

Serial Port Sniffer Open Source Software

Bootloader

We used the Diolan open source (GPL) USB bootloader in this project. The bootloader appears as a USB HID device, and a small utility uploads a new firmware to the PIC. We started with the bootloader source from the Dangerous Prototypes' USB Infrared Toy and ported it to the 18F24J50.

Enter bootloader mode by placing a jumper between PGC and PGD pins and press the reset button, or run the ols-loader utility with the -b flag. The ACT LED will light when the bootloader is active. Use the fw_update.exe utility under Windows, or ols-fw-update under Linux to load new PIC firmware with the bootloader.

LED indicators

ACT and PWR LED

The PWR LED indicates that the board is powered over USB. It will stay on until the board is disconnected from USB.

ACT LED Status
Blinking, then off with TRIG LED on Normal SUMP mode
Solid Bootloader or ROM update mode
Rapid blinking Failed self-test
Blinking, then solid on (TRIG LED off) FPGA failed to load, auto enter ROM update mode
Source

The ACT LED shows the connection status and current Logic Sniffer mode (normal, bootloader, ROM update, or self-test error). The ACT LED will also blink to show USB data transfer activity.

Error: failed self-test

The PIC does a self-test at each power on to make sure the major components of the Logic Sniffer are working. If the test fails, the ACT LED will blink rapidly and the Logic Sniffer will not continue the loading process. It currently tests:

  1. Pull-up resistors must be high (update button, R4)
  2. 2.5volt power must be within 10% (VR2)
  3. 1.2volt power must be within 10% (VR3) *rev 1.03+ only

Error: FPGA failed to load

The FPGA loads the logic analyzer bitstream from the flash storage chip on the Logic Sniffer. It takes a second to load, the ACT LED will blink while the PIC waits for it to complete. When the ROM is loaded the TRIG LED will turn on.

The PIC won't wait forever though. If the FPGA fails to load after a few seconds, because of damage or a blank flash ROM chip, the PIC will automatically enter ROM update mode and the ACT LED turns solid on (the TRIG LED should be off).

A possible solution is to try reloading the FPGA bitstream with the ols-loader utility.

ARM and TRIG LED

Serial Port Sniffer Free

LED functions in normal SUMP mode.

State TRIG ARM note
Power on ON OFF After connecting to USB the TRIG LED will turn on, and stay on, until a capture is started
Capture no trigger ON OFF TRIG LED stays on if no trigger is used for the capture
Capture with trigger OFF ON TRIG LED turns off, ARM LED turns on until the trigger condition is met
Capture complete ON OFF TRIG LED stays on after a capture begins

Pin numbering scheme

Open Bench Logic Sniffer v1.01 (OLS v1.01) Headers and SwitchesBuffered Probe Header and Unbuffered I/O Header – Channel Numbering Scheme

Channel Assignment for Inside and Outside Numbering Scheme(can only be selected in “latest” SUMP Java client released together with bitstream release 2.04!)

Inside Numbering Scheme

Inside Numbering Scheme activated in SUMP Java Client:

Channel group 0 (channels 0-7) and channel group 1 (channels 8-15) on Buffered Probe Header!

Channel group 2 (channels 16-23) and channel group 3 (channels 24-31) on Unbuffered I/O (Wing) Header!

Outside Numbering Scheme

Outside Numbering Scheme activated in SUMP Java Client:

Channel group 0 (channels 0-7) and channel group 1 (channels 8-15) on Unbuffered I/O (Wing) Header!

Channel group 2 (channels 16-23) and channel group 3 (channels 24-31) on Buffered Probe Header!

Pin guide and graphics by IPenguin.

Other Stuff

Retrieved from 'http://dangerousprototypes.com/docs/Logic_Sniffer_101'
While trying to debug a High Voltage Parallel Programming experiment and trying to get an idea of the state of the 15 or so signals involved, I decided I had outgrown the ability of my Bus Pirate (which works quite nicely as a logic analyzer, but is limited to 5 channels, 4096 samples at 1MHz, and very simple triggers).
I decided on an Open Bench Logic Sniffer, made by the same people as the Bus Pirate, and working with the same logic analyzer clients. Logic Sniffer allows sampling rates up to 200MHz, and 24K samples with 8 channels, 12K samples with 16 channels, or 6K samples with 32 channels, and much more sophisticated triggers. As my OS X client, I used Logic Sniffer Java client, which by now has pretty much supplanted the original SUMP client for which the Logic Sniffer was designed.
Initial experiments were not entirely satisfactory. It seemed that 8 channel mode mostly worked, but 16 channel mode tended to work only at the 200MHz sample rate, which was too fast for my purpose and only gave me brief snippets of the transactions I wanted to examine (at least, thanks to the advanced triggers, picking those snippets was feasible).
I decided to look for a firmware update, and at this point, the seamy underbelly of the Logic Sniffer ecosystem came into plain view:
  • There is a confusing tangle of web pages purporting to have Logic Sniffer documentation, pointing to obsolete versions of each other, with some of the links just broken.
  • The pertinent information on the web forum discussing Logic Sniffer is distributed across several threads, and it’s not always evident which information is authoritative.
  • Some key tools for upgrading are Windows specific, making life for OS X users a bit harder.
  • The Logic Sniffer authors were not always entirely aware of what the actual manufacturers did with the devices (My brand new Logic Sniffer from Seeed Studio shipped with firmware that was more than 2 years out of date!).
As a result, my upgrade took a rather circuitous route, and at one point had me believe I had bricked my logic sniffer (turns out I had just uploaded firmware into the wrong flash memory region). For future generations, here’s what I now believe are best practices:
  • The most useful starting page for Logic Sniffer is at Dangerous Prototypes (while the Gadget Factory page linked is so outdated that even the “updated” link it contains leads to a mostly broken page).
  • The discussion forum is part of the Dangerous Prototypes Forum.
  • The latest firmware, however, is still hosted at Gadget Factory (Don’t be discouraged by the “Mac OS X coming soon” links—see below).
To actually upgrade the firmware from an OS X machine (most other platforms are quite a bit simpler), I got the following procedure to work:
  • Get the ols-fwloader source from github and compile it (you’ll need to install autoconf through Fink or MacPorts). Most likely, you won’t need to install the resulting tool, but if you do, pick a suitable --prefix:
  • Get the Diolan dummy kext from the discussion forums and install it. You may see some scary looking warnings, but everything’s perfectly safe.
  • Get the “Linux Expert” package from the Gadget Factory download page (latest release right now is 3.08). Change into the OLS_Upgrader directory.
  • Put your logic sniffer into “ROM update mode” by holding the “update” button on the board and then pressing the “reset” button while the “update” button is held. If successful, both green LEDs (ACT and PWR) above the USB connector should be lit.
  • Determine the serial port of your Logic Sniffer, which will be of the form /dev/tty.usb*. Use that port in the code below.
  • Upgrade the FPGA bitstream, and then the Logic Sniffer firmware:
  • Now unplug and re-plug the logic sniffer. Everything should be working.
With the latest firmware, everything seems to work great. The hardware is capable of much more than the software currently supports, but even so, it’s a fairly nice instrument:

Latest Posts

  • Spotify Drm 解除 Mac
  • Download Spotify Premium On Iphone
  • Spotify App Disk Fragmentation
  • Free Music Spotify Iphone
  • Spotify Tricks Mac