Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

201 can errors cli viewer #316

Merged
merged 22 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
52f21d4
Moved files to new branch
sokosam Nov 6, 2024
a421af2
error description added with temp description
sokosam Nov 7, 2024
267814e
Fixed bug with bits
sokosam Nov 7, 2024
be9eb9b
minor error with submenu when opening description
sokosam Nov 8, 2024
df36d5d
new description features added
sokosam Nov 8, 2024
9ac02de
finished: ~10. Make cursor move to the ignored menu when the ignored…
sokosam Nov 11, 2024
4ef003d
refactored some of the code to reduce redundancies, added comments to…
sokosam Nov 12, 2024
d9b345a
small fix to description box showing the main table description when …
sokosam Nov 12, 2024
648dd81
added structs to store data and changed functionality to implement, m…
sokosam Nov 17, 2024
f9eed6a
Removed last instance of findRowString and added cli flag for canInte…
sokosam Nov 17, 2024
261c523
Key behavior attached to keymap
sokosam Nov 17, 2024
4a149b6
Updated the README.md
sokosam Nov 17, 2024
c6681c9
fixed findError when done after sort
sokosam Nov 17, 2024
7861322
Refactored code. Added metatable, modified table.go to keep track of …
sokosam Nov 19, 2024
cf9da83
remove redundant function
sokosam Nov 19, 2024
7dcc3a3
Small fix in readme and further implemented isolated logic
sokosam Nov 19, 2024
eba8ea8
other small fixes
sokosam Nov 19, 2024
dc38cfb
Removed redundant comments, changed some field/function names to be m…
sokosam Nov 19, 2024
8ad6e9f
remove submodule
sokosam Nov 19, 2024
af17608
Undo submodule change
BlakeFreer Nov 20, 2024
3cba992
Program now exits gracefully when an error occurs, setup_vcan now req…
sokosam Nov 20, 2024
a8e255c
remove submodule
sokosam Nov 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions scripts/can_errgo/README.md
BlakeFreer marked this conversation as resolved.
Show resolved Hide resolved
BlakeFreer marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# CAN Error TUI

This is a Tangible User Interface program designed to track CAN Errors including their count, recency, description, and name.

Users can:

- Acknowledge the error (Hide and resets the error until it is sent again)
- Ignore the error (Hides, resets, and stops reading all future occurrences of the error)
- View ignored errors and choose to unignore those errors

## Setup

Install required dependencies:

```bash
sudo apt-get update
sudo apt-get upgrade
sudo apt install net-tools iproute2 can-utils linux-modules-extra-$(uname -r)
```

Kill all existing instances of ip-links:

```bash
ip link show
sudo ip link delete <ip-link>
```

Setup the can network:

```bash
./setup_vcan.sh <CAN_PORT>
```

## Usage

Start the CLI viewer for single use:

```bash
go run error_tui.go -i <CAN_PORT> -w <WARN_TIMER>
```

OR

Build the go file:

```bash
go build -o <BUILD_NAME>
./<BUILD_NAME> -i <CAN_PORT> -w <WARN_TIMER>
```

You can now run:

```bash
cansend <CAN_PORT> <MSG>
```
Loading
Loading