- move the analysis server out of simtrace2_pysniff into simtrace_analyser; simtrace2_pysniff stays as the simtrace2-sniff replacement capture utility - new server CLI: simtrace-analyser-server; python -m simtrace_analyser (simtrace2-pysniff-server and python -m simtrace2_pysniff.server dropped) - simtrace2_pysniff lazy-imports hardware symbols, so the server no longer pulls PyUSB at startup; the GSMTAP/PCAP codecs work without libusb - version 2.0.0 everywhere (was 1.22.21); PWA SW cache simtrace-analyser-v54 - frontend: server name, clone URL and i18n strings updated; vendored-parser reference otaman -> SIMple - README/README_RUS reworked product-first (analyser first, utility second) - DB dir ~/.simtrace-analyser, /api status payload and hosted PWA unchanged
55 lines
1.2 KiB
Batchfile
55 lines
1.2 KiB
Batchfile
@echo off
|
|
setlocal enabledelayedexpansion
|
|
|
|
:: simtrace-analyser-server startup script for Windows
|
|
::
|
|
:: Usage: start.bat [--capture gsmtap|direct] [--port PORT] [--db PATH] [--gsmtap-port PORT]
|
|
::
|
|
:: Options set via environment variables act as defaults; CLI flags override them.
|
|
|
|
set "CAPTURE=%CAPTURE%"
|
|
if "%CAPTURE%"=="" set "CAPTURE=gsmtap"
|
|
set "PORT=%PORT%"
|
|
if "%PORT%"=="" set "PORT=8081"
|
|
set "DB=%DB%"
|
|
set "GSMTAP_PORT=%GSMTAP_PORT%"
|
|
if "%GSMTAP_PORT%"=="" set "GSMTAP_PORT=4729"
|
|
set "EXTRA_ARGS="
|
|
|
|
:parse_args
|
|
if "%~1"=="" goto :run
|
|
if "%~1"=="--capture" (
|
|
set "CAPTURE=%~2"
|
|
shift
|
|
shift
|
|
goto :parse_args
|
|
)
|
|
if "%~1"=="--port" (
|
|
set "PORT=%~2"
|
|
shift
|
|
shift
|
|
goto :parse_args
|
|
)
|
|
if "%~1"=="--db" (
|
|
set "DB=%~2"
|
|
shift
|
|
shift
|
|
goto :parse_args
|
|
)
|
|
if "%~1"=="--gsmtap-port" (
|
|
set "GSMTAP_PORT=%~2"
|
|
shift
|
|
shift
|
|
goto :parse_args
|
|
)
|
|
set "EXTRA_ARGS=!EXTRA_ARGS! %~1"
|
|
shift
|
|
goto :parse_args
|
|
|
|
:run
|
|
echo Starting simtrace-analyser-server...
|
|
echo PWA (simtrace-analyser) will be served at http://127.0.0.1:%PORT%/
|
|
|
|
set "PYTHONPATH=%~dp0"
|
|
python -m simtrace_analyser --capture %CAPTURE% --port %PORT% --gsmtap-port %GSMTAP_PORT% %EXTRA_ARGS%
|