Saleae 1-Wire Analyzer
The following documentation describes how to build this analyzer locally. For more detailed information about the Analyzer SDK, debugging, CI builds, and more, check out the readme in the Sample Analyzer repository.
https://github.com/saleae/SampleAnalyzer
Dependencies:
- XCode with command line tools
- CMake 3.13+
- git
Install command line tools after XCode is installed:
xcode-select --install
Then open XCode, open Preferences from the main menu, go to locations, and select the only option under 'Command line tools'.
Install CMake on MacOS:
- Download the binary distribution for MacOS,
cmake-*-Darwin-x86_64.dmg
- Install the usual way by dragging into applications.
- Open a terminal and run the following:
/Applications/CMake.app/Contents/bin/cmake-gui --install
Note: Errors may occur if older versions of CMake are installed.
Build the analyzer:
mkdir build
cd build
cmake ..
cmake --build .
Dependencies:
- CMake 3.13+
- gcc 4.8+
- git
Misc dependencies:
sudo apt-get install build-essential
Build the analyzer:
mkdir build
cd build
cmake ..
cmake --build .
Dependencies:
- Visual Studio 2019
- CMake 3.13+
- git
Visual Studio 2019
Note - newer and older versions of Visual Studio are likely to work.
Setup options:
- Workloads > Desktop & Mobile > "Desktop development with C++"
Note - if CMake has any problems with the MSVC compiler, it's likely a component is missing.
CMake
Download and install the latest CMake release here. https://cmake.org/download/
git
Download and install git here. https://git-scm.com/
Build the analyzer:
mkdir build
cd build
cmake .. -A x64
Then, open the newly created solution file located here: build\one_wire_analyzer.sln
Optionally, build from the command line without opening Visual Studio:
cmake --build .
The built analyzer DLLs will be located here:
build\Analyzers\Debug
build\Analyzers\Release
For debug and release builds, respectively.
Property | Type | Description |
---|
Reset pulse
Property | Type | Description |
---|
Presence Pulse
Property | Type | Description |
---|---|---|
description |
str | read, skip, search, or match |
rom_command |
bytes | The command byte |
ROM command. This is the first command issued by the master after a presence pulse
Property | Type | Description |
---|---|---|
crc |
bytes | The CRC byte |
8 bit CRC, last part of the 64 bit identifier
Property | Type | Description |
---|---|---|
family |
bytes | The family code, which is the first part of the 64 bit identifier |
The family code of the device ID
Property | Type | Description |
---|---|---|
id |
int | 48 bit integer, taken from the center of the 64 bit identifier |
The 48 bit device identifier
Property | Type | Description |
---|---|---|
data |
bytes | A single data byte |
Data byte after the ROM command and identifier
Property | Type | Description |
---|---|---|
rom_command |
bytes | The ROM command byte |
Unknown ROM command
Property | Type | Description |
---|---|---|
rom_command |
bytes | The command byte |
Alarm search command