Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
The code is licensed under GPL-3.0-or-later. mycan.c uses some codes
from https://files.waveshare.com/upload/4/4e/RS485_CAN_HAT_Code.zip
which does not have a license which means those codes are non-free close
souce proprietary, so I don't think I'm allowed to add a free and open
soruce license to mycan.c. all_SRE_edited.dbc is edited from "SR-16
Custom BMS.dbc" file from
https://github.com/spartanracingelectric/SR16-CustomBMS/blob/main/SR-16%20Custom%20BMS.dbc
and authors of SR16-CustomBMS does not have a license in their code
repository for "SR-16 Custom BMS.dbc" file, so authors of SR16-CustomBMS
have the copyright on "SR-16 Custom BMS.dbc" file, so all_SRE_edited.dbc
can be considered non-free close souce proprietary code. **So there are
license issues, I use both non-free and free copyleft license codes.**
net/if.h's LGPL-2.1-or-later license is compatible with
GPL-3.0-or-later. linux/can.h and linux/can/raw.h uses ((GPL-2.0-only
WITH Linux-syscall-note) OR BSD-3-Clause) license, Linux-syscall-note
see
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/LICENSES/exceptions/Linux-syscall-note
allows codes using syscalls not to be contaminate with GPL because it is
not "derived work", both (GPL-2.0-only WITH Linux-syscall-note) and
BSD-3-Clause are compatible with GPL-3.0-or-later and I only need to use
one of the two because of the "OR" word.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
linux/can.h and linux/can/raw.h are (GPL-2.0-only WITH
Linux-syscall-note) OR BSD-3-Clause license, although I can use any
license I want because that BSD-3-Clause license, I still choose to be
safe and use linux's GPL-2.0-only license.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This reverts commit a4dcf5ba5a79254c16341f060b227c6c97654012.
The commit does not fix the issue of corrupted .csv file.
|
|
Sudden power loss on pi may result to bad .csv file. Save to a string
first maybe can mitigate this issue a little bit. Also this way maybe
more optimized, not sure.
|
|
On raspberry pi debian 12, when trying to build
https://codeberg.org/flyxyz123/remote_plot, I got make error "ld:
undefined reference to ..." if use `cc -Wall $$(pkg-config --cflags
--libs libssh plplot gtk4) -lm -o $@ $^`. No error if move $^ to the
beginning. Not sure why, maybe becuase pi has an old version of gcc?
This repo does not have this issue if put `$^` at the end. But I think
put `$^` at the beginning maybe is a more correct way.
|
|
|
|
https://github.com/spartanracingelectric/SR16-CustomBMS/blob/main/SR-16%20Custom%20BMS.dbc
Edited some lines at the .dbc file head to make dbcc work, maybe wrong.
|
|
|
|
|
|
|
|
|
|
https://github.com/spartanracingelectric/Custom-BMS/blob/main/custom_bms.dbc
|
|
When using $HOME env, array length need to consider /.local/.share
|
|
|
|
I also copied old code that can only do live data to old/mycan_live.c
|
|
|
|
change again, not tested, only guess
|
|
|
|
|
|
|
|
Edited according to BMS_Highest_Cell_Temperature
|
|
This reverts commit 103197138bfc90dfb87429c0b1b6b8f2167dfedb.
|
|
|
|
|