-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Scripts fetching basic information from hobot during update
- Loading branch information
1 parent
3dd44d7
commit 8fb3efb
Showing
3 changed files
with
62 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,23 @@ | ||
# hombot-tools | ||
Contains tools to explore and pimp Lg Home Bot (vacuum cleaner) | ||
|
||
All the tools provided have been developed for the vacuum cleaner Lg64703. | ||
All observations and changes are based upon version 13865 of the Hom-Bot's firmware. | ||
|
||
The software uses experimental namespaces provided by the implemenation of std c++17 distributed with Visual Studio 2015 Update 3. | ||
|
||
Feel free to port this tool to other platforms! | ||
# hombot-tools | ||
Contains tools to explore and pimp Lg Home Bot (vacuum cleaner) | ||
|
||
All the tools provided have been developed for the vacuum cleaner Lg64703. | ||
All observations and changes are based upon version 13865 of the Hom-Bot's firmware. | ||
|
||
|
||
DatExtractor: | ||
------------- | ||
The software uses experimental namespaces provided by the implemenation of std c++17 distributed with Visual Studio 2015 Update 3. | ||
|
||
Feel free to port this tool to other platforms! | ||
|
||
|
||
Scripts: | ||
-------- | ||
The folder Scripts contains simple scripts to be executed during firmware update. | ||
To use these copy the update.sh on an empty usb stick and plug it to the hom bot during startup. | ||
|
||
|
||
To preserve functioning use | ||
git config --global core.autocrlf false | ||
on windows or any system using CR/LF line endings. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/sh | ||
#IS_HIT_UPDATE_SCRIPT=1 | ||
|
||
SOURCE_PATH="/mnt/usb" | ||
|
||
aplay -c 1 -r 16000 -f S16_LE /usr/SNDDATA/SND_BLACKBOX_LOADING_START.snd | ||
|
||
mkdir $SOURCE_PATH/backup/ | ||
|
||
cp -R /linuxrc $SOURCE_PATH/backup/ >> $SOURCE_PATH/output.txt 2>&1 | ||
cp -R /bin $SOURCE_PATH/backup/ >> $SOURCE_PATH/output.txt 2>&1 | ||
#cp -R /dev $SOURCE_PATH/backup/ >> $SOURCE_PATH/output.txt 2>&1 | ||
cp -R /etc $SOURCE_PATH/backup/ >> $SOURCE_PATH/output.txt 2>&1 | ||
cp -R /lib $SOURCE_PATH/backup/ >> $SOURCE_PATH/output.txt 2>&1 | ||
#cp -R /mnt $SOURCE_PATH/backup/ >> $SOURCE_PATH/output.txt 2>&1 | ||
#cp -R /proc $SOURCE_PATH/backup/ >> $SOURCE_PATH/output.txt 2>&1 | ||
#cp -R /root $SOURCE_PATH/backup/ >> $SOURCE_PATH/output.txt 2>&1 | ||
cp -R /sbin $SOURCE_PATH/backup/ >> $SOURCE_PATH/output.txt 2>&1 | ||
#cp -R /sys $SOURCE_PATH/backup/ >> $SOURCE_PATH/output.txt 2>&1 | ||
cp -R /temp $SOURCE_PATH/backup/ >> $SOURCE_PATH/output.txt 2>&1 | ||
cp -R /tmp $SOURCE_PATH/backup/ >> $SOURCE_PATH/output.txt 2>&1 | ||
cp -R /usr $SOURCE_PATH/backup/ >> $SOURCE_PATH/output.txt 2>&1 | ||
cp -R /var $SOURCE_PATH/backup/ >> $SOURCE_PATH/output.txt 2>&1 | ||
|
||
aplay -c 1 -r 16000 -f S16_LE /usr/SNDDATA/SND_BLACKBOX_LOADING_END.snd | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/sh | ||
#IS_HIT_UPDATE_SCRIPT=1 | ||
|
||
SOURCE_PATH="/mnt/usb" | ||
|
||
aplay -c 1 -r 16000 -f S16_LE /usr/SNDDATA/SND_BLACKBOX_LOADING_START.snd | ||
|
||
ls -lA -R / > $SOURCE_PATH/dirlist.txt 2>&1 | ||
|
||
aplay -c 1 -r 16000 -f S16_LE /usr/SNDDATA/SND_BLACKBOX_LOADING_END.snd | ||
|
||
exit 0 |