Home
Using Virtual Serial Port Service
Contents
1. Figure 8 Directory showing upass app loaded IPAD IPHONE SETUP For iPad iPhone setup follow these steps 1 Download the BL600 Serial app If you are searching for the application on an iPad you may need to click the iPhone Apps tab in the App Store The BL600 Serial application can be found here 2 Install BL600 Serial the Laird Technologies utility from Apple s App Store Figure 9 Ensure that Bluetooth is enabled in the device settings BL600 Serial Figure 9 BL600 Serial app installed DEVELOPMENT KIT SETUP TO AUTORUN UPASS In this application we use external UART loop back to test the Virtual Serial Port service First we must rename our application as autorun to ensure it runs automatically after every power cycle or whenever reset is applied Figure 10 For more information on autorun refer to the BL600 smartBASIC User Manual UwTerminal v6 60 Terminal BASIC Config About CTS DSR DCD Fi RTS DTR BREAK LocalEcho LineModel Clear ClosePort Figure 10 Renaming upass as autorun Now that we have our application renamed as autorun and ready to go we must configure the development board to work in hostless mode To do this follow these steps 1 First we need to isolate the UART from the host FTDI chip by switching CON13 to the position labelled as 1234 2 Use the jumpers link TX amp RX CTS amp RTS as shown in Figure 11 Embedded Wireless Solutions Support 5 _ Laird Tec
2. 0d Console Console Console Touch Connect to make connection Connected to LT_UPASS 2434 Conn Interval 30000 Conn Supervision Timeout 720000 Conn Slave Latency 0 Touch Connect to make connection Connected to LT_UPASS 2434 Conn Interval 30000 Conn Supervision Timeout 720000 Conn Slave Latency 0 Touch Connect to make connection Hardware revision 0x48 0x77 0x52 0x65 0x76 0x31 Ox2e 0x30 HELLO BL600HELLO BL600 Hardware revision 0x48 0x77 0x52 0x65 0x76 0x31 Ox2e 0x30 Snone a E Figure 12 Starting the application Figure 13 Connection Figure 14 Loop back Embedded Wireless Solutions Support 6 _ Laird Technologies Center http ews support lairdtech com Americas 1 800 492 2320 Europe 44 1628 858 940 www lairdtech com bluetooth Hong Kong 852 2923 0610 Using Virtual Serial Port Service vSP with smart BASIC Application Note Figure 14 shows the transmitted text followed by the echoed text HELLO BLOOOHELLO BLO6OO REFERENCES For more information on Virtual Serial Port as well as any smartBASIC commands used in this application note refer to the following documents available from the Embedded Wireless Solutions Support Center https laird ews support desk com b_id 1945 docs Virtual Serial Port sample application upass vsp sb included with firmware files in Laird s Bluetooth Firmware Download Center Virtual Serial Port Library cli upass vsp sblib i
3. BL600 Development Kit Laird gt Using Virtual Serial Port Service vSP with smart BASIC Application Note V1 2 INTRODUCTION This guide demonstrates how to load and run a smartBASIC Virtual Serial Port service sample application upass vsp sb onto the BL600 development board The sample application advertises a serial port service When the BL600 is connected to a central role device the application accepts data over the air and passes It to the UART Any data arriving at the UART are also sent over the air to the central device If the UART Is isolated from the host and TX amp RX and CTS amp RTS are shorted together any data received from the central unit are looped back by this application that is all data received are sent back to the central device VSP OVERVIEW The module can present a Virtual Serial Port vSP service in the local GATT Table consisting of two mandatory characteristics and two optional characteristics One mandatory characteristic is the RX FIFO to which the GATT client writes in order to send data to the module The other is the TX FIFO through which data is sent from the module via a notification These characteristics both consist of an attribute taking up to 20 bytes Of the optional characteristics one is the Modemin which consists of a single byte only bit O is used as a CTS type function The other is ModemOut also a single byte which is notifiable only and is used to convey an RTS flag to the central device T
4. act UWTerminal to a selected folder and run UwTerminal exe Embedded Wireless Solutions Support 2 _ Laird Technologies Center http ews support lairdtech com Americas 1 800 492 2320 Europe 44 1628 858 940 www lairdtech com bluetooth Hong Kong 852 2923 0610 Using Virtual Serial Port Service vSP with smart BASIC Application Note 5 Configure the COM port with the port number seen in the device manager with the following settings Figure 3 Baudrate 9600 a UwTerminal v6 60 Stop Bits 1 Terminal BASIC Config About Data Bits 8 ok Cancel Quit Handshaking None IF you just want to f Corpor COM E x Poll for port enter the BASIC tab d do not h f Top Socket Baudrate 9600 ee ee Line Terminator Parity None E m pee ee f CH aioe Client so that LE stop Bits 1 ad streaming f CRLF Data Bits 8 communications happen over a tepip LEER Handshaking CTSARTS connection fram within a smartBASIC application jf Use AT FWRAH Command 70 Mas AT FWRH Command Len W TraceLog BASIC comme traffic in Terminal window Log Filename Append Figure 3 Comms Settings 6 Confirm that you can communicate with the development board by typing atand press enter The module responds with 00 Figure 4 m UwTerminal v6 60 Terminal BASIC Config About CTS DSA DCO Ri RTS DTR BREAK LocalEcho LineModel Clear ClosePort ht click for pop up m
5. cho LineModel Clear ClosePort 008060FFFF5203000010000 0FA306D000001F82200000110D2 b FF48130000A11B000000000400FBC0130048414E444C4552424C52 4p4 i ini nAra IRH FWRE T FWRH 1 4 FWRH Q1ES 71008 AT EWRH 0110CF3006009001E5210080C920530C0110023 T FWRH 0C01108910F724481C0110FD10F510 AT FCL 44 DONE COMS5 9600 N 8 1 cr Tx 34317 Rx 2081 Figure 6 Compiled and loaded If the correct version of cross compiler is not present an error displays as shown in Figure 7 UwTerminal v6 23 Terminal BASIC Contig About CTS DSRM DCD FI RTS DIR BREAK LocalEcho LineModel Clear ClosePort H der a djs y T S bu iT Figure 7 Cross compiler error 4 Locate the correct version and place it in the same folder as UWTerminal 5 Confirm that upass vsp sb is loaded by using the command at dir Figure 8 Note The file extension is truncated from files copied onto the BL600 module Therefore when upass vsp sb is copied to the device its name becomes upass Embedded Wireless Solutions Support 4 _ Laird Technologies Center http ews support lairdtech com Americas 1 800 492 2320 Europe 44 1628 858 940 www lairdtech com bluetooth Hong Kong 852 2923 0610 Using Virtual Serial Port Service vSP with smart BASIC Application Note ee UwTerminal v6 60 Terminal BASIC Config About CTS DSR DCD Ri RTS DTR BREAK LocalEcho LineModel Clear ClosePort
6. enu for more options Figure 4 Comms OK LOADING A SMARTBASIC APPLICATION Note When swapping between profiles on the same device it may be necessary to clear any existing pairings on the module and iOS device On the BL600 this can be done with the command at btd On the iOS device this can be done in the Bluetooth settings panel To load a smart BASIC application follow these steps 1 Ensure the cross compiler is located in the same folder as UWTerminal Its name is similar to XComp_BL600r2_CAOD_1DA6 where CAOD_7DA6 indicates a hash key Each firmware version requires its corresponding cross compiler with a matching hash key 2 Tocompile and load a smartBASIC application right click in the main UWTerminal window and select XCompile Load Figure 5 XCompile XCompile Load ACompile Load Run Figure 5 Right click menu Embedded Wireless Solutions Support 3 _ Laird Technologies Center http ews support lairdtech com Americas 1 800 492 2320 Europe 44 1628 858 940 www lairdtech com bluetooth Hong Kong 852 2923 0610 Using Virtual Serial Port Service vSP with smart BASIC Application Note 3 Locate and open the upass vsp sb application located in the supplied smartBASIC _sample_Aops folder When the application is successfully compiled and loaded the console displays DONE Figure 6 UwTerminal v6 60 Terminal BASIC Config About CTS DSR DCD Ai RTS DTR BREAK LocalE
7. he UUIDs of the service and characteristics are shown in Table 1 Table 1 VSP Service and Characteristic UUIDs VSP Service 569a1101 b87f 490c 92cb 11ba5ea5167c RX FIFO Characteristic 569a2001 b87T 490c 92cb 1 1ba5ea5167c TX FIFO Characteristic 569a2000 b87T 490c 92cb 11ba5ea5167c Modemin Characteristic 569a2003 b87T 490c 92cb 11ba5ea5167c ModemOut Characteristic 569a2002 b87T 490c 92cb 1 1ba5ea5167c Typically the GATT client writes 1 to the Modemin characteristic letting the BL600 know that the GATT client can accept data The BL600 then sends data via the TX FIFO characteristic until the value of Modemin changes to 0 Conversely the BL600 writes 1 to the ModemOut characteristic via notification letting the GATT client know that the BL600 can accept data The GATT client can then send data to the BL600 via the RX FIFO characteristic Figure 1 gives a visual representation of this 1E1010 GATT Server VSP Service Modem In Rx Fifo i i Send Data GATT Client Receive Data Notify 1 Modem Out Tx Fifo Send Data Receive Data Figure 1 Usage of Characteristics and Data Flow Embedded Wireless Solutions Support 1 _ Laird Technologies Center http ews support lairdtech com Americas 1 800 492 2320 Europe 44 1628 858 940 www lairdtech com bluetooth Hong Kong 852 2923 0610 Using Virtual Serial Port Service vSP with smart BASIC Application Note REQUIREMENTS PC running Windows XP o
8. hnologies Center http ews support lairdtech com Americas 1 800 492 2320 Europe 44 1628 858 940 www lairdtech com bluetooth Hong Kong 852 2923 0610 Using Virtual Serial Port Service vSP with smart BASIC Application Note 3 Set the J6 the three way jumper to the autorun position es _ Boom Temp S Sens n GN j Dono TE st _ ae wr fo i at E 10 0107 n e TECHNOLOGIES gt tis ace 5 a z a o a x see develop Ir i k I 9 i TEE gt 1 J me USB OSR me USB_DITR wa USB 0C0 me uSB Ri SI0O_30 d comtd ma Module RT Salas D wa Jodule_ TX t Jodule cise y SE dodule_ Rx shg Tiree TECT SE a 82 23 of OSS ie PED g Lf sal 1 Pepe PSPS EAL MN get a FCC ID PI4BL500 IC 19318 BLE00 YM15 S10 16 19 Figure 11 Host less autorun configuration 4 Start the BL6E0OUART Serial application on your iPhone 5 Start the upass application by pressing the rest button on the development board The module starts advertising Virtual Serial Port Service 6 On the iPhone press Connect Click in the space next to the Send button and type a text to be sent 8 Click send to send the data to the module The sample application upass receives the data and sends it through the UART When the data arrives at the UART through the external loop back it sends this data back to the host as shown in Figure i ses 13 and o 14 Disconnect HELLO BL6
9. ncluded with firmware files in Laird s Bluetooth Firmware Download Center BL600 smartBASIC User Guide Note Some documentation and downloads require access to the BT Firmware Download Center Click here to request access REVISION HISTORY 1 0 21 Oct 2013 Initial Release Mahenara Tailor 1 1 20 Feb 2014 Merged two documents Jonathan Kaye 1 2 09 Jan 2015 Updated References links to new website Sue White Renamed as an App Note vs QSG Embedded Wireless Solutions Support 7 _ Laird Technologies Center http ews support lairdtech com Americas 1 800 492 2320 Europe 44 1628 858 940 www lairdtech com bluetooth Hong Kong 852 2923 0610
10. r later UWrTerminal 6 50 or later DVK BL600 Development Kit loaded with at v1 2 54 0 firmware or later see Note Upass vsp sb smartBASIC sample application and cli upass vsp sblib library USB A to mini B cable iPad 3 iPhone 4S or newer with BT4 0 support Internet connection on iOS device to download the BL600 Serial application DVK_BL600 User Manual Available from the EWS Support Center https laird ews support desk com b_id 1945 docs FTDI Drivers http Awww ftdichip com Drivers VCP htm for some versions of Windows Note The latest BLOO firmware and upgrade documentation is available here https laird ews support desk com b_id 1945 docs DEVELOPMENT KIT SETUP To setup the BL600 development kit follow these steps 1 Configure the BL600 development kit to the following settings Figure 2 DC USB power source switch SW4 USB VCC_1V8 VCC_3V3 switch SW5 VCC_3V3 CR2033 VCC_3V3 1V8 switch SW6 VCC_3V3 1V8 0049 pe 4 D a pata oa u O R 204 32 Figure 2 Switch and jumpers position 2 Connect one end of the mini USB cable to CON4 on the development board and the other end of the cable to your PC 3 Follow the on screen prompts Depending on your version of Windows you may need to install the FTDI drivers When complete the development board appears in the Windows device manager as a USB Serial Port Note the COM port number 4 Extr
Download Pdf Manuals
Related Search
Related Contents
2975_MANUAL 288-3443-01 Toshiba MK1656GSY hard disk drive User Manual - Digi International Western Digital My Book for MAC ioPAC 5500 Hardware User`s Manual Manual de usuario - CONRAD Produktinfo. Manual de usuario - Observatorio Astronómico Nacional de San Descargas - Fondital Benutzerhandbuch Copyright © All rights reserved.
Failed to retrieve file