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

SAAB CIM Tool Zip File #1

Open
wants to merge 100 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
dfa3792
tidy and update
Nov 20, 2022
7b2d3e3
Rename folder for ease of use
ReyKoxha Nov 20, 2022
8c2e752
Create LICENSE
ReyKoxha Nov 20, 2022
196d661
Feat/gui (#1)
roffe Nov 23, 2022
fc471f5
bump
roffe Nov 23, 2022
604835b
update
roffe Nov 23, 2022
8f76658
Update README.md
roffe Nov 23, 2022
46b7d8f
cleanup
roffe Nov 23, 2022
cb24bb5
update
roffe Nov 23, 2022
a83e60a
add firmware update instructions and copy of avrdudes
roffe Nov 23, 2022
01ae189
Updates 1 (#2)
roffe Nov 25, 2022
8b40fb5
add feature to unmarry the CIM
roffe Nov 26, 2022
bdf9ff2
update CIM package
roffe Nov 26, 2022
30cafc2
add version to firmware package
roffe Nov 26, 2022
36f0c86
use buffers
roffe Nov 26, 2022
2f7012c
more generous default values now that the firmware is more optimized
roffe Nov 26, 2022
afd2851
add changelog to help window
roffe Nov 26, 2022
800b1bf
disable buttons while writing
roffe Nov 26, 2022
8b27505
version handshake and inform if update is needed
roffe Nov 26, 2022
342781e
allow for lower values in settings
roffe Nov 26, 2022
4b689be
tweak xor view in viewer
roffe Nov 26, 2022
ae8ce31
resize settings window
roffe Nov 26, 2022
1c2e625
add github structure for releases
roffe Nov 26, 2022
179eb5a
update notes in changelog
roffe Nov 26, 2022
6d7b79a
check for updates on start
roffe Nov 26, 2022
0ca533a
update firmware
roffe Nov 26, 2022
a268581
update cim package
roffe Nov 26, 2022
21d1c0d
* try to verify files when viewing
roffe Nov 27, 2022
f27763c
use built in versioning in settings
roffe Nov 27, 2022
cedf749
fyne app versioning does not work
roffe Nov 27, 2022
2355c84
use wire version instead
roffe Nov 27, 2022
c15e334
set wire version
roffe Nov 27, 2022
d83bc52
set version in app
roffe Nov 27, 2022
87bfe33
move firmware info to viewer
roffe Nov 27, 2022
c5e76fa
parse wire version
roffe Nov 27, 2022
5a6e876
start XORed
roffe Nov 27, 2022
9e97d94
update deps & packageing
roffe Nov 27, 2022
0111576
sync
roffe Nov 27, 2022
5bc0684
print if sas enabled or not
roffe Nov 27, 2022
395e483
update version label
roffe Nov 27, 2022
e73ea3c
update firmware
roffe Nov 27, 2022
8d86f3b
allow even lower values on delays
roffe Nov 27, 2022
b33768a
colorize the viewer
roffe Nov 27, 2022
ba1c33d
add func to list all releases
roffe Nov 27, 2022
db2e2a6
cleanup
roffe Nov 27, 2022
dbc5b31
get releases list once from github
roffe Nov 27, 2022
a61d0e0
update fyne toml and go.mod
roffe Nov 27, 2022
427ab3c
- add size in info pane
roffe Nov 27, 2022
0a8acce
change max allowed pin delay
roffe Nov 27, 2022
ce496cd
better memory management in firmware
roffe Nov 27, 2022
2beaa2d
use uint8 instead of 16 and cap delay to 255
roffe Nov 27, 2022
8de0e54
load release changelog from github
roffe Nov 27, 2022
ce80bbb
speed handshake when opening port and retries
roffe Nov 27, 2022
7eec6bb
bump version
roffe Nov 27, 2022
fc32b14
wire version will be tied together with app version
roffe Nov 27, 2022
b6b5218
update deps
roffe Nov 27, 2022
43e1ad1
fix color map and bump build number
roffe Nov 27, 2022
50094fd
tidy up some in FW
roffe Nov 28, 2022
a0add41
update title
roffe Nov 28, 2022
c316dad
add board settings
roffe Nov 28, 2022
191941f
update deps
roffe Nov 28, 2022
19885d2
add close settings window
roffe Nov 28, 2022
09cd5d5
update bin
roffe Nov 28, 2022
a051e5a
small delays to combat race conditions
roffe Dec 5, 2022
1e159cd
key editing feature and reworked hex view
roffe Dec 5, 2022
415f9d5
update firmware
roffe Dec 5, 2022
d64db11
tidy up code
roffe Dec 5, 2022
e8366f8
UI improvements and better key editing
roffe Dec 8, 2022
c6fa933
code cleanup
roffe Dec 11, 2022
71ac3f3
2.11-rc1
roffe Dec 13, 2022
d06a377
cleanup UI and break out adapter code
roffe Dec 14, 2022
4676859
Release 2.0.12
roffe Dec 17, 2022
1bb37ca
remove rar file..
roffe Dec 17, 2022
bcd67a4
v2.0.13
roffe Dec 21, 2022
d33c1d8
v2.0.14
roffe Jan 1, 2023
7e31e09
looks bad but should fix the white boxes once and for all
roffe Jan 2, 2023
cbebf81
bump fw
roffe Jan 2, 2023
7184755
bump version
roffe Jan 2, 2023
0d22fcc
new theme
roffe Feb 14, 2023
c9b971e
add read MIU function for future
roffe Feb 14, 2023
e392ba5
move help button back to where it was
roffe Feb 14, 2023
9f0f170
use new theme
roffe Feb 14, 2023
61555e8
adapter code
roffe Feb 14, 2023
90c0370
add org16 support
roffe Feb 14, 2023
bba9ee6
bump version
roffe Feb 14, 2023
100d3f7
clean up help
roffe Feb 14, 2023
48f9594
add P3 info
roffe Feb 14, 2023
507d0fa
make main window bigger
roffe Feb 14, 2023
90094f0
adjust what tab to jump to when updating firmware
roffe Feb 14, 2023
2e94707
only allow writing valid cim binaries
roffe Feb 14, 2023
567e482
tweak update
roffe Feb 14, 2023
1877a1c
update firmware to allow reading org16 from MIU
roffe Feb 14, 2023
4ef581d
add some padding so dropdowns looks ok
roffe Feb 14, 2023
770e1fa
bump to 2.0.16
roffe Feb 14, 2023
b728c8a
update dependencies
roffe Feb 14, 2023
9ba3f09
update makefile so it generates x86 & x64 binaries
roffe Feb 14, 2023
375f561
update readme
roffe Feb 25, 2023
600fac7
update readme
roffe Feb 25, 2023
24dc092
again
roffe Feb 25, 2023
e23d29c
Mac OS X version
djfremen Jul 16, 2023
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
Prev Previous commit
Next Next commit
* try to verify files when viewing
* disable buttons during erase
roffe committed Nov 27, 2022
commit 21d1c0dc78de752f57ce247e5390c47d14623f48
43 changes: 30 additions & 13 deletions gui/main_window.go
Original file line number Diff line number Diff line change
@@ -13,6 +13,7 @@ import (
"fyne.io/fyne/v2/layout"
"fyne.io/fyne/v2/theme"
"fyne.io/fyne/v2/widget"
"github.com/hirschmann-koxha-gbr/cim/pkg/cim"
sdialog "github.com/sqweek/dialog"
)

@@ -125,12 +126,26 @@ func (m *MainWindow) viewClickHandler() {
return
}

bin, err := os.ReadFile(filename)
bin, err := cim.MustLoad(filename)
if err != nil {
m.output(err.Error())
dialog.ShowConfirm("File verification failed", fmt.Sprintf("File verification failed: %v. View anyway?", err), func(ok bool) {
if ok {
rawbin, err := os.ReadFile(filename)
if err != nil {
m.output(err.Error())
return
}
newViewerWindow(m.e, filename, rawbin, false)
}
}, m.w)
return
}
b, err := bin.XORBytes()
if err != nil {
dialog.ShowError(err, m.w)
return
}
newViewerWindow(m.e, filename, bin, false)
newViewerWindow(m.e, filename, b, false)
}()

}
@@ -217,14 +232,16 @@ func (m *MainWindow) writeClickHandler() {
}

func (m *MainWindow) eraseClickHandler() {
go func() {
if m.e.state.port == "" {
m.output("Please select a port first")
return
}
if m.e.state.port == "" {
m.output("Please select a port first")
return
}

dialog.ShowConfirm("Erase CIM?", "Continue erasing CIM?", func(b bool) {
if b {
dialog.ShowConfirm("Erase CIM?", "Continue erasing CIM?", func(b bool) {
if b {
go func() {
m.disableButtons()
defer m.enableButtons()
start := time.Now()
sr, err := m.openPort(m.e.state.port)
if sr != nil {
@@ -242,10 +259,10 @@ func (m *MainWindow) eraseClickHandler() {
}

m.output("Erase took %s", time.Since(start).String())
}
}, m.w)
}()

}()
}
}, m.w)
}

func (m *MainWindow) saveFile(title string, data []byte) bool {