BL652 Development Kit
User Guide
Embedded Wireless Solutions Support Center:
http://ews-support.lairdtech.com
www.lairdtech.com/bluetooth
19
© Copyright 2016 Laird. All Rights Reserved
Americas: +1-800-492-2320
Europe: +44-1628-858-940
Hong Kong: +852 2923 0610
6.7
vSP (Virtual Serial Port) Modes and OTA (Over the Air) smart
BASIC Application
Download
The OTA feature makes it possible to download smart
BASIC applications over the air to the BL652. To enable
this feature, SIO_2 must be pulled high externally.
On the development board, header connector J5-pin1 brings out the BL652 SIO_2; J5-pin 2 brings out VCC_IO.
To pull BL652 SIO_2 high (to VCC_IO), fit jumper into header J5.
Note:
When SIO_2 is high, ensure that SIO_13 (nAutoRun) is NOT high at same time, otherwise you cannot
load the smartBASIC application script.
This section discusses VSP Command mode through pulling SIO_2 high and nAutoRUN low. Refer to the
documentation tab of the BL652 product page
http://www.lairdtech.com/products/bl652-ble-module
.
Figure 10
shows the difference between VSP Bridge to UART mode and VSP Command mode and how SIO
_02
and nAutoRUN must be configured to select between these two modes.
VSP Bridge to UART mode takes data sent from phone or tablet (over BLE) and sends to BL652 to be sent
out of the BL652 UART (therefore data not stored on BL652).
VSP Command mode takes data sent from phone or tablet and sends to BL652 which will interpret as an AT
command and response will be sent back. The OTA Android or iOS application can be used to download
any smartBASIC application script over the air to the BL652 because a smartBASIC application is
downloaded using AT commands.
Figure 10: Differences between VSP bridge to UART mode and VSP Command mode
Table 5: vSP modes
Mode
SIO
_02 and Jumper position J5
nAutoRUN (SIO_13) and Jumper position J12
VSP Bridge to UART
mode
High by fitting jumper in J5
High by fitting jumper in J12 pin 2-1 and untick
DTR box in UwTerminal
VSP Command mode
High by fitting jumper in J5
Low by fitting jumper in J12 pin 2-3 and tick
DTR box in UwTerminal (the DTR box is ticked
by default in UwTerminal)
SIO_02 High (externally) selects the VSP service. When SIO_02 is High and nAutoRUN is Low (externally), this
selects VSP Command mode. When SIO_02 is High and nAutoRUN is High (externally), this selects VSP Bridge to
UART mode.