Skip to content

Commit

Permalink
lower value for the sleep value in uart detection loop.
Browse files Browse the repository at this point in the history
lower delay between each septentrio command tool retry
  • Loading branch information
Stefal committed Dec 21, 2024
1 parent 3cfade8 commit 453025a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tools/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ detect_gnss() {
#echo 'Unicore ' "${model}" ' DETECTED ON '$port $port_speed
break
fi
sleep 1
sleep 0.1
done
#exit loop if a receiver is detected
[[ ${#detected_gnss[*]} -eq 3 ]] && break
Expand Down Expand Up @@ -522,7 +522,7 @@ configure_gnss(){
sudo -u "${RTKBASE_USER}" sed -i -r '/^rtcm_/s/1107(\([0-9]+\))?,//' "${rtkbase_path}"/settings.conf && \
return $?

elif [[ $(python3 "${rtkbase_path}"/tools/sept_tool.py --port /dev/ttyGNSS_CTRL --baudrate ${com_port_settings%%:*} --command get_model --retry 2) =~ 'mosaic-X5' ]]
elif [[ $(python3 "${rtkbase_path}"/tools/sept_tool.py --port /dev/ttyGNSS_CTRL --baudrate ${com_port_settings%%:*} --command get_model) =~ 'mosaic-X5' ]]
then
#get mosaic-X5 firmware release
firmware="$(python3 "${rtkbase_path}"/tools/sept_tool.py --port /dev/ttyGNSS_CTRL --baudrate ${com_port_settings%%:*} --command get_firmware --retry 5)" || firmware='?'
Expand Down
2 changes: 1 addition & 1 deletion tools/sept_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def arg_parse():
print(args)
command = args.command[0]
retries = 0
retry_delay = 10
retry_delay = 2
while retries <= args.retry:
try:
with SeptGnss(args.port, baudrate=args.baudrate, timeout=30, debug=args.debug) as gnss:
Expand Down

0 comments on commit 453025a

Please sign in to comment.