1. Description
--------------
RC71x0-logger application is modem looger tool to collect modem log for Linux.
The application only for Sierra Wireless EM7590.


2. Prerequisities
-----------------
Since ModemManager will try to configure the device.
please make sure that ModemManager is not running. This will interfere with the firmware download.
ModemManager can be stopped by follow command:
#sudo systemctl stop ModemManager

3. Build Instructions
---------------------
How to make RC71x0-logger application:
3.1 Remove previously built files
#make clean
3.2 Default build X86_64
#make
3.3 Build ARM64 CPU platform
#make BUILD_CPU_OPTION=ARM64
3.4 Build ARM64 linaro CPU platform
#make BUILD_CPU_OPTION=ARM64_LINARO
3.5 Build ARM rpi CPU platform
#make BUILD_CPU_OPTION=ARM_RPI
3.6 Build ARM32 hard-float CPU platform
#make BUILD_CPU_OPTION=ARM32
3.7 Build i686 CPU platform
#make BUILD_CPU_OPTION=HOST_i686
3.8 Build mips big endian CPU platform
#make BUILD_CPU_OPTION=MIPSEB
3.9 Build mips little endian CPU platform
#make BUILD_CPU_OPTION=MIPSEL

The executable binary(ex: RC71x0-loggerHOST_x86_64) shall be located under ./bin folder.
Please copy the file to current folder and change the name to "RC71x0-logger"

4. modem logger Usage:
-----------------------
sudo ./RC71x0-logger [-p <modem port>] [-b <baud rate>] [-o <output file name>] [-mf < log segment size] [-h]

-p: Specify the modem port.
-b: Set the baud rate to synchronize the communication with device, default is 921600
-o: Set the log output file name, the default file name is “dm_log.bin”
-mf: Set the desired size for splitting the log file, the default size is 500M bytes
-h: Display usage option

Ex1: Record the log via modem port
sudo ./RC71x0-logger -p /dev/ttyACM1 -b 921600

Ex2: Add this option to set the log file name
sudo ./RC71x0-logger -p /dev/ttyACM1 -b 921600 -o my_log.mbn

Ex3: Set the maximum log file size to 100 MB for splitting the log file.
sudo ./RC71x0-logger -p /dev/ttyACM1 -b 921600 -mf 100





