Askey Computer Corp BLT2010 Manual Do Utilizador

Página de 22
 
  
 
 
7    BlueSuite Programs 
This chapter describes the programs included in BlueSuite. The features of each program are briefly described and 
any relevant documentation is listed. Some programs without separate user guides are described in full detail.
7.1 
Transport Options for Command Line Tools
Some command line tools in BlueSuite take a -trans option, which controls the transport options. Table 7.1 
indicates which variables can be used with each tool: 
Variable 
e2bluecmd/ 
pscli 
Default 
SPI 
Description 
Example Values 
blueflashcmd 
CSRTRANS  - 
The transport to use 
SPI, USB, BCSP, H4 and 
H5 
HCIPORT 
HCIBAUD 
autodetect if 
USB, otherwise 
COM1
The port to use for the   com1, com2, csr0 
selected HCI transport if 
not CSRTRANS=SPI
115200 
The baud rate to use for 115200, 38400, etc. 
uart based HCI 
transports
SPITRANS 
SPIPORT 
LPT 
The SPI transport to use LPT, USB 
if CSRTRANS=SPI 
autodetect 
The port to use for the 
selected SPI transport
■ 
■ 
A LPT port number: 
1, 2 etc. 
A USB-to-SPI 
converter's ordinal 
position: o, 1, 2.
■ 
A USB-to-SPI 
converter's serial 
number (as printed 
on the converter 
e.g. 185920)
SPIMUL 
Note: 
The device to use if the  0, 1, etc. 
SPI port is multiplexed 
Table 7.1: Command Line Transport Options 
Where appropriate, BlueSuite tools attempts to prepend \\.\ to a string in HCIPORT. For example the name 
of a CSR USB device on WinXP is \\.\csr0; BlueSuite tools re-interpret csr0 as \\.\csr0. 
Examples 
To use USB-SPI (where 185920 is the serial number printed on the USB-SPI): 
-trans "CSRTRANS=SPI SPITRANS=USB SPIPORT=185920" 
(or just "SPITRANS=USB SPIPORT=185920") 
To use BCSP on COM1 at 38.4 kbaud: 
-trans "CSRTRANS=BCSP HCIPORT=com1 HCIBAUD=38400"
It is possible to set these as Windows environment variables, which are then used as the default setting for a variable 
e.g. "set SPITRANS=USB" would change the default SPI transport from LPT-SPI to USB-SPI.