You are on page 1of 13

KC-21

www.kcwirefree.com

Class 2 Bluetooth Data Module

Firmware Features
WirelessDataCommunicationsSystem EmbeddedBluetoothSerialPortProfile(SPP) RemoteCommandAndControl LowPowerConnectionModes<500A EasyToUseATCommandInterfaceUsingUART OEMProgrammableConfiguration CustomFirmwareAvailable 26.9mmx15.2mmx2.5mm

Hardware Features
CSRBlueCore4ExtChipset Bluetoothv2.1+EDR 2.4GHzClass2Radio RangeTypicallyExceeds20m HighSpeedDataRateUpTo3Mbps 12DigitalProgrammableI/OPins 2AnalogProgrammableI/OPins UART,USB,SPIInterfaces OnboardAntenna 8MbitFlashMemory

Applications
SerialCableReplacement RemoteSensors MedicalMonitoring BarCodeReaders RFIDTagReaders CreditCardReaders

Description
TheKC21seriesdatamodulesarepreengineered,prequalified,andhighlytunedsurfacemountPCBmodulesthat providefullyembedded,readytouseBluetoothwirelesstechnology.Multisurfacepadsprovidebothbottompadsfor highvolumereflowsolderingandedgepadsforlowvolumehandsoldering. TheKC21offersreprogrammable,embeddedfirmwareforserialcablereplacementdeployingtheBluetoothSerialPort Profile(SPP).OEMspecificparametersandsettingscanbeeasilyloadedintothesemodules. OurkcSerialembeddedfirmwareprovidesaneasytouseATstylecommandinterfaceoverUART.kcSerialiscapableof storingOEMdefaultsettings,andisupgradableoverUART.kcSerialalsoprovidesremotecontrolcapability,whereour ATcommandscanbeissuedremotelyfromanyotherBluetoothdeviceusingSPP.Customfirmwareisavailable. (Forlongrangeapplications,KCWirefreerecommendsourKC5100Class1,BluetoothDataHiPowerModule.)

20032011KCWirefree

Page1of13

VersionJune24,2011

KC-21
www.kcwirefree.com

Class 2 Bluetooth Data Module

Standard Bluetooth Data Profiles


TheKCWirefreeKC21datamodulescomesstandardwithkcSerialwhichincludessupportfor(DUN)Dialup NetworkingProfile,and(SPP)SerialPortProfile. DUN Dialup Networking Profile DUNprovidesastandardtoaccesstheInternetandotherdialupservicesoverBluetoothtechnology.Themost commonscenarioisaccessingtheInternetfromalaptopbyusingyourmobilephoneasawirelessdialupmodem. SPP Serial Port Profile TheSPPisaverypopularwidelyusedprofilefortransmittingdatainplaceofaserialcable.SPPdefineshowtosetup virtualserialportsandconnecttwoBluetoothenableddevices.Ascenariowouldbeusingtwodevices,suchasPCsor laptops,asvirtualserialportsandthenconnectingthetwodevicesviaBluetoothtechnology.

Available Bluetooth Data Profiles


KC21iscapableofsupportingadditionalBluetoothprofiles.ContactKCWirefreeforcustomizationoptions. HID Human Interface Device Profile TheHIDprofiledefinestheprotocols,proceduresandfeaturestobeusedbyBluetoothHIDsuchaskeyboards,pointing devices,gamingdevicesandremotemonitoringdevices.Themostcommonusagewouldbeyourwirelessdesktop, keyboard,mouse,etc. OPP Object Push Profile OPPdefinestherolesofpushserverandpushclient.Theserolesareanalogoustoandmustinteroperatewiththe serverandclientdevicerolesthatGOEPdefines.Anexamplescenariowouldbetheexchangeofacontactor appointmentbetweentwomobilephones,oramobilephoneandaPC.

20032011KCWirefree

Page2of13

VersionJune24,2011

KC-21
www.kcwirefree.com

Class 2 Bluetooth Data Module

Physical Dimensions
KC21TopView (dimensionsinmm)
1.80 0.70 2.52 6.75

KC21LandingPattern (dimensionsinmm)
2.52

1.98 1.53
PIO 08 NC RSET PIO 09 PIO 01 TXD PIO 00 RXD CTS RTS USB DP USB DM 1 2 3 4 5 6 7 8 9 10 11 12 28 27

8.00

1.53 2.20
26 25 24 23 22 21 20 19 18 17 16 15 14 13 VDD GND PIO 05 PIO 04 PIO 06 PIO 07 PIO 10 PIO 03 PIO 02 PIO 11 AIO 0 AIO 1

1.66

0.70 1.80

15.24 mm

1.80 0.12
Pad layout 0.775 1.025

16.75

1.00 0.524 1.00 1.80

17.76 19.68

26.92

8.51

16.79 mm

8mm Minimum No Ground Zone

Pio Assignments
OnlyforthisKC21v6module,ourpreviouskcSerialv2.4firmwareeditionprovidedalogicalGPIOassignmentwithin theATCommandlanguagetopreservecompatibilitywitholdergenerationsofKC21modules.SinceournewkcSerial v3.0firmwareprovidescompletelyreassignablePioInput/Outputfeatures,thislogicalGPIOassignmentisnolonger necessary,andtheBluetoothchipphysicalPIOassignmentsareused. Pin 1 4 5 7 15 16 kcSerial v3.0 PIO08 PIO09 PIO01 PIO00 PIO11 PIO02 kcSerial v2.4 GPIO03 GPIO08 GPIO10 GPIO09 GPIO13 GPIO00 Pin 17 18 19 20 21 22 kcSerial v3.0 PIO03 PIO10 PIO07 PIO06 PIO04 PIO05 kcSerial v2.4 GPIO01 GPIO04 GPIO02 GPIO05 GPIO15 GPIO06

20032011KCWirefree

Page3of13

VersionJune24,2011

KC-21
www.kcwirefree.com

Class 2 Bluetooth Data Module

Pin Assignment
Pin 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 Function PIO_08 NC RESET PIO_09 PIO_01 UART_TXD PIO_00 UART_RXD UART_CTS UART_RTS USB_DP USB_DN AIO_1 AIO_0 PIO_11 PIO_02 PIO_03 PIO_10 PIO_07 PIO_06 PIO_04 PIO_05 GND VDD SPI_MISO SPI_MOSI SPI_CS SPI_CLK Type I/O Input I/O I/O Output I/O Input Input Output I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O Input I/O I/O I/O I/O Description ProgrammableInput/Output NotConnected HardwareResetwhenLow>5ms ProgrammableInput/Output ProgrammableInput/Output[Class1TXEnable] UARTDataOutput ProgrammableInput/Output[Class1RXEnable] UARTDataInput UARTClearToSend UARTRequestToSend USBDataPositive USBDataNegative ProgrammableInput/Output[ADC,CLK] ProgrammableInput/Output[ADC,CLK] ProgrammableInput/Output ProgrammableInput/Output ProgrammableInput/Output ProgrammableInput/Output ProgrammableInput/Output[RXDPassthrough] ProgrammableInput/Output[CTSPassthrough] ProgrammableInput/Output[TXDPassthrough] ProgrammableInput/Output[RTSPassthrough] Ground 3V3RegulatedInput SPIMasterInSlaveOut SPIMasterOutSlaveIn SPIChipSelect SPIClock

[Special/optionalpinfeaturesshowninbrackets]

20032011KCWirefree

Page4of13

VersionJune24,2011

KC-21
www.kcwirefree.com

Class 2 Bluetooth Data Module

Electrical Characteristics
Absolute Maximum Ratings Storagetemperaturerange SupplyvoltageVDD Recommended Operating Conditions TemperatureRange SupplyVoltageVDD(3.3VRecommended) Digital PIO & UART Pins Characteristics InputVoltageLowLogic InputVoltageHighLogic OutputVoltageLowLogic OutputVoltageHighLogic InputLeakageCurrent InputCapacitance WeakInternalPullUp WeakInternalPullDown StrongInternalPullUp StrongInternalPullDown Analog Programmable I/O Pins Characteristics Resolution SampleRate Voltage Min 0.4 2.3 3.1 1 1.0 5.0 +0.2 100 +10

(ConditionsVDD=3.3Vand25C) Min 40 0.4 Max 150 3.7 Unit C Volts

Min 40 2.8

Max 85 3.6

Unit C Volts

Typ 1.0 +1.0 40 +40

Max 0.8 3.7 0.2 +1 5.0 0.2 +5.0 10 +100

Unit Volts Volts Volts Volts A pF A A A A

Min 0

Max 8 50 1.8

Unit Bits PerSec V

20032011KCWirefree

Page5of13

VersionJune24,2011

KC-21
www.kcwirefree.com

Class 2 Bluetooth Data Module

Electrical Characteristics Cont.


Current Consumption ACLData115KbpsDataTransfer(Master) ACLData115KbpsDataTransfer(Slave) Connection,NoDataTraffic(Master) Connection,NoDataTraffic(Slave) Peakcurrent SniffMode(40mssniff)(Master) SniffMode(40mssniff)(Slave) SniffMode(1.3ssniff)(Master) SniffMode(1.3ssniff)(Slave) DeepSleep Selected RF Characteristics MaximumRFpower Sensitivitylevel Powercontrolrange Powercontrolresolution Antennaload Test Conditions 50load 0.1%BER BT Spec 6to+4 70 16 Typical +5 85 35 0.5 50 Unit dBm dBm dB dB Avg 11 25 4.6 17 90 2.4 2.1 0.4 0.4 40 Unit mA mA mA mA mA mA mA mA mA A

20032011KCWirefree

Page6of13

VersionJune24,2011

KC-21
www.kcwirefree.com

Class 2 Bluetooth Data Module

Firmware Interface
TheKC21offersourpowerfulkcSerialfirmwareinterfaceusingtheUART,whichprovidesaneasytouseATstyletext commandinterface.Thefirmwareinterfaceallowspersistentstorageofconfigurationparameterssuchasdevicename, defaultbaudrate,securityPIN,andautomaticconnectionsettings.AdditionallykcSerialprovidesoperational commandssuchasdiscovery,connections,security,read/writecommandsforI/Opins.Thesecommandsarealso availableinremotecommandmode,soakcSerialdevicewillrespondtothesecommandsissuedlocallyviaUART,or wirelesslyviaremotecommandmode. ThekcSerialv3.0firmwareiscompatiblewithkcSerialv2.4andv2.2firmwareusedonpreviousversionsofKC21 modules.Manynewcommandsareavailable,offeringgreatercontroloverfeaturesandsettings. kcSerial v3.0 AT Command List
AT -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> Help [CommandList] AioRead BtAddr CoD ConnDiscOverride ConnectDun DebugMode DisconnectDun Discovery FactoryReset InputCmdMode InquiryScan LowLatency OutputActivity OutputLowBatt PairingDelete PinCode PioSettings PioWrite RfcService Rssi ShowSettings SniffSettings Timer Version EscapeMode EscapeCmd RemoteMode RemoteCmd

AutoConnect Build ConfigRawBaud Connect ConnectIOS DeepSleep Discoverable DiscoveryRssi HciMode InputConnect LinkTest Messages OutputConnect Pair PairingOption PioConfig PioStatus RemoteCommand RfPower Security ShowStatus SniffSubrate TimerAio ZvMode ~~~~~1 ~~~~~2 ~~~~~3 ~~~~~4

BatteryMon Bypass ConfigUart Connectable ConnectScan Disconnect DiscoverSvc EscapeCommand HwFlowControl InputSleepBlock LinkTimeout Name OutputCpu Pairable Passkey PioRead PioStrong Reset RoleSwitch SecurityAuth Sniff SppService TimerPio

prefix: prefix: prefix: prefix:

Command help: AT <command> ? [EndCommandList]

PleaserefertoourkcSerial3.0UserGuideforadditionalinformation.

20032011KCWirefree

Page7of13

VersionJune24,2011

KC-21
www.kcwirefree.com

Class 2 Bluetooth Data Module

Hardware Interfaces
SPI Interface TheSPIpinsareonlyavailableforfirmwareloadingandtesttools.SPItestpointsarehighlyrecommendedfor emergencydiagnosticsaccess. UART Interface TheUARTiscompatiblewiththe16450industrystandard.FoursignalsareprovidedwiththeUARTinterface.TheTXD andRXDpinsareusedfordatawhiletheCTSandRTSpinsareusedforflowcontrol.TheUARTpinsoperateatTTL voltagelevelandmustbetranslatedtohigherRS232voltagelevelsforcommunicatingwithPChosts.AMaxim3225 seriesorsimilartranslatorisrecommended.ItishighlyrecommendedthatUARTpinsareavailableforexternal connection(DB9connectorortestpoints)toallowfirmwarereinstallationorupdates. UART Bypass Interface AUARTbypassfeatureisavailablewheretheUARTsignalsarepassedthroughtoPIO[4,5,6,7].Anexternalprocessoris requiredtoissueacommandthatenablesthebypassmode.ThemodulewillbeinDeepSleepwhileinbypassmode, andrequiresanexternalresettoresumenormaloperation. USB Interface TheUSBinterfaceisavailableforcustomapplications. Firmware Command and Control KC21modulescanbeconnectedtoPCorMCUhostsusingtheUARTinterface.OurkcSerialfirmwareprovidesaneasy touseATstylecommandinterfaceusingsimpletextcommandsandparameters.PleaserefertoourkcSerialUserGuide foradditionalinformation. PIO Interface Pins PIOpinsarereadandwriteenabledviakcSerialcommands.Inputscanbeconfiguredforweakpullup,weakpulldown, strongpullup,strongpulldown.VoltageinputtoleranceandoutputlevelisequaltotheVDDlevel. AIO Interface Pins AIO0andAIO1areenabledforanaloginputbydefault,providing8bitsamplesatratesupto50samples/sec.Analog pinsare1.8Vlogicforinputmode.AIOpinscanbeoptionallyconfiguredforclockoutputof8,16,24,or48MHz.

20032011KCWirefree

Page8of13

VersionJune24,2011

KC-21
www.kcwirefree.com

Class 2 Bluetooth Data Module

Application Notes
EagleCADfootprintavailableatwww.kcwirefree.com. RS232hardwareflowcontrolisdisabledinkcSerialv3.0firmwarebydefault,andcanbepermanentlyenabled withATHwFlowControlEcommand.Itishighlyrecommendedtoenablehardwareflowcontrol,sincedatacan belostwithpoorwirelessconnectionswithoutflowcontrol. UARTinterfacesare3V3TTL.AvoltagelevelshifterisrequiredwheninterfacingtoPCstandardRS232ports. Powersupplytomoduleshouldhavelessthan10mVrmsnoisebetween010MHz,andspikesshouldbeminimal. Regulatorshouldhaveafastresponsetime<20s.Itisessentialthatthepowerrailrecoverquickly.Weprefer theOnSemiconductorMC78PC33NTRG. AvoltagelevelmonitorICconnectedtoRESETisrecommendedforfluctuatingpowersources(especially automotive).Flashmemorycanbecomecorruptedwithhighorlowspikingpowersources. 1ForlargercapacitorfilterrecommendedforVDDinput. Allunusedpinsshouldbeunconnected. Theareaaroundtheantennashouldbefreeofmetalandgrounds.Minimumclearanceis5mm,butadditional clearanceimprovesRFperformance. Donotuseultrasoniccleaning,whichmaycauseinternalinterconnectdamagetoICsandcrystals. WerecommendprovidinganRJ45programmingadapterjack,oratleasta2.54mmprogrammingheader.The componentdoesnotneedtobeplacedunlessneededforemergencydiagnostics.
RJ-45 JACK PROGRAM INTERFACE
SPI MOSI SPI MISO SPI CSB SPI CLK GND

2.54 MM HEADER PROGRAM INTERFACE


SPI CLK SPI MOSI SPI MISO SPI CSB GND USB DP USB DM 3V3
1 8

20032011KCWirefree

Page9of13

VersionJune24,2011

KC-21
www.kcwirefree.com

Class 2 Bluetooth Data Module

Example Hardware Interface Connections


KCWirefreemodulesprovideUART,SPI,andPIOhardwareinterfaces.Thissectionillustratesatypicalimplementation, anddoesnotconsiderallcases.Ourengineersareavailabletoreviewdesignsandansweranyotherdesignquestions. Contactourengineeringdepartmentdirectlybyemail:support@kcwirefree.com
3.3V

COMPUTER / MICROPROCESSOR 1

DB-9 MALE DTE 6

DB-9 FEMALE DCE 1 6 RXD TXD CTS RXD RTS 8 4 7 3 2

MAX3225 LEVEL SHIFTER


FORCE OFF INVALID T1 OUT R1 IN R2 IN T2 OUT C1+ 0.1UF C1C2+ 0.1UF C2VDD GND T1 IN R1 OUT R2 OUT T2 IN V+ VGND READY 0.1UF 0.1UF

BLUETOOTH DATA MODULE 3V3


10UF 10UF

GND UART_TXD UART_CTS UART_RXD UART_RTS

UART_RXD UART_RTS UART_TXD UART_CTS

2 7 3 8 4 9 5

RTS TXD CTS

9 5

UARTconnectionwithlevelshifting
TEST POINTS

SPI MOSI

28 27 1 PIO 03 2 NC 3 RSET 4 PIO 08 5 PIO 10 UART TXD 6 UART TXD 7 PIO 09 UART RXD SERIAL FLOW CONTROL OVERRIDE 8 UART RXD 9 UART CTS 10 UART RTS 11 USB P 12 USB N

26 25 VDD 24 GND 23 PIO 06 22 PIO 15 21 PIO 05 20 NMOS 1F 3.3V

PIO 04 18 PIO 01 17 PIO 00 16 PIO 13 15 AIO 0 14 AIO 1 13

10K

430

PIO 02 19

SPI MISO

SPI CSB

SPI CLK

EXAMPLE OUTPUT LED 3.3V

EXAMPLE INPUT BUTTON 3.3V

ExampleKC21moduleschematicusing3wireserialinterfaceoption

20032011KCWirefree

Page10of13

VersionJune24,2011

KC-21
www.kcwirefree.com

Class 2 Bluetooth Data Module

Pre Qualifications
Bluetooth TheKC21isregisteredwithandlicensedbyBluetoothSIGasaqualifieddesign. QualificationDesignID:B015017 BluetoothVersion:2.1+EDR QualifiedProfiles:BB,DUN,GAP,HCI,L2CAP,LM,RFCOMM,SDP,SPP

UsageofBluetoothregisteredtrademarksmustbelicenseddirectlyfromBluetoothSIG.Anocostmembershipis currentlyofferedfortrademarkusage,andnocostBluetoothproductlistingsarecurrentlyofferedforproducts containingourprequalifiedBluetoothmodules. FCC TheKC21isregisteredwithandgrantedlimitedmodularapprovalbytheFederalCommunicationsCommission.The KC21meetstheconductedandradiatedemissionrequirementsoftheFCC"CodeofFederalRegulations"Title47,Part 15,SubpartC,Section15.247forBluetoothspreadspectrumtransmitters. Withawrittenagreement,OriginalEquipmentManufacturersmayuseourFCCIDtransmitterlicense.Thefollowing FCCIDmustbevisibleontheexterioroffinaltheproduct. CE TheKC21complieswiththefollowingEMCDirectives: EN300.328V1.6.1(200411) FCCID:S2242

Industry Canada ICWarningStatement:ThedevicesusermanualdoesnotcontainthefollowingorequivalentstatementasperRSS GENsection7.1.5:Operationofthisdeviceissubjecttothefollowingtwoconditions:(1)thisdevicemaynotcause interference,and(2)thisdevicemustacceptanyinterference,includinginterferencethatmaycauseundesired operationofthedevice. SAR SARcompliant. ICID:8193ABTMODULECL2

20032011KCWirefree

Page11of13

VersionJune24,2011

KC-21
www.kcwirefree.com

Class 2 Bluetooth Data Module

Datasheet Versions
Revisions February11,2009 March3,2009 March5,2009 March23,2009 April3,2009 June17,2009 August3,2009 January21,2010 February9,2010 March17,2010 July27,2010 Jun24,2011 Changes KC21v6datasheetrelease Updatedimage,correctedexamplecircuitpinnumbers Updatedapplications,addedcrossreferenceforKC5290,addedblockdiagram UpdatedkcSerialcommands,exampleschematic,hardwareinterfaces Updatedexampleschematics,correctedMOSI,MISOpinlabels Updatedexampleschematics,andformatting Updatedprofiles Updateddimensions,exampleschematics,firmwaredescription,applicationnotes Updateformatting 3wireserialinterfacecorrection,renameanalogIOpins,updateillustrations UpdatedPIOassignments,addedkcSerialv3.0informationandcommands Updatedoperatingvoltages

20032011KCWirefree

Page12of13

VersionJune24,2011

KC-21
www.kcwirefree.com

Class 2 Bluetooth Data Module

Ordering Information
ProductSeries ProductVersion CountryofManufacture KC21 6.3 USA

Order Part Number KC21.6 KC21.6FW

Description Class2BluetoothDataModulew/kcSerialv3.0StandardFirmware Class2BluetoothDataModule,w/CustomFirmware

Contact Information
KCWirefree 2640WMedtronicWay Tempe,Arizona85281 (602)3862640 Phone

www.kcwirefree.com Website info@kcwirefree.com SalesSupport tech@kcwirefree.com TechnicalSupport

20032011KCWirefree

Page13of13

VersionJune24,2011

You might also like