Skip to content

Commit

Permalink
Scripts fetching basic information from hobot during update
Browse files Browse the repository at this point in the history
  • Loading branch information
pocketbroadcast committed Aug 20, 2016
1 parent 3dd44d7 commit 8fb3efb
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 9 deletions.
32 changes: 23 additions & 9 deletions README.md
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.
27 changes: 27 additions & 0 deletions Scripts/copy all/update.sh
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
12 changes: 12 additions & 0 deletions Scripts/dir list/update.sh
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

0 comments on commit 8fb3efb

Please sign in to comment.