![FPC 100015050 Скачать руководство пользователя страница 20](http://html1.mh-extra.com/html/fpc/100015050/100015050_getting-started-manual_2325932020.webp)
Public
Doc number:
Doc revision:
Doc state:
Date:
100021008
7.2
Approved
03/Apr/2020
Doc class:
Approver:
Page:
Instruction
20(21)
All information contained within this document is proprietary to Fingerprint Cards AB.
5
How to use the Python script ‘bep_ref.py’
5.1 Arguments for running bep_ref.py
Arguments
Description
-i, --interface Host interface for communication with BM-Lite. Default is 'uart'. Other
alternatives: 'spi' for the FPC5832 FTDI-card, 'rpispi' for the Raspberry Pi SPI
-p, --port
Input port name (COMX, /dev/ttyACMX, /dev/ttyUSBX)
-s, --speed
Input communication speed
-t, --timeout
Timeout for 'UART receive' in seconds (>=2)
--id
Partial or full Jlink device id
--debug
Print debug information
--log
Collect KPI data and target logs. Port number must be entered "--
log=[PORT]"
--gui
Start application with graphical user interface
5.2 SPI Startup example
(Replace the comport name with the one you are using)
Linux: sudo python3 ./bep_ref.py -i spi -p /dev/ttyUSB0
Win: py ./bep_ref.py -i spi -p COM5
5.3 UART Startup example
(Replace the comport name with the one you are using)
Linux: sudo python3 ./bep_ref.py -i uart -p /dev/ttyUSB0 -s 115200
Win: py ./bep_ref.py -i uart -p COM5 -s 115200
(Note that all UART communication must be at baud rate 115200, from SW version 1.2. For
older SW versions the default baud rate is 921600.)
5.4 Example procedures
After starting the bep_ref.py application, "Possible options" will be presented for controlling
the BM-Lite. Please follow the below procedures in numerical order.