Home
Manual - Saelig
Contents
1. ulceBlue 2 Wireless embedded control module GETTING STARTED MANUAL ulceBlue2 Wireless control module emxys 2008 All rights reserved emxys reserves the right to make changes and improvements to its products without providing notice ulceBlue ulceBlue2 IceBlue and PearlBlue are trademarks of emxys Ltd Version 2 0 July 2009 EMB CBBED Support emays com Table of Contents 1 Introduction and overview ssssssssussusununnunnunnnnnunnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn 6 1 1 The Bluetooth tech hol Vs 6 1 2 The ulceBlue2 Module si 7 LS NO nee nen E E E 8 EA REOUISICES sn 8 2 CONNECTING ulceBlue2 nn nenn 10 2 1 Wireless connection anne nee 10 2 2 1 ED2 EST REEL Nn 13 2 3 Power requirements anne 16 3 Programming ul ceBlue2 ir cc iind a aa kan a na an anna an 18 3 1 Programming the module with ICD2 uuuuunuuunnnnnnnnunnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn 18 4 PIN assign ME ES su 20 Ar PIN OUE nennen nennen EEG 20 WIRE SBB Ep iam ve Index of Figures Figure 1 The ul ceBlue2 module u eee eo een 7 Figure 2 Bluetooth network with ulceBlue2 uuuuuuunnnnnnnnnunnuunnnunuunnnnnnnnnnnnnnnnnnnnn 11 Figure 3 Windows Device Discovery wiz ard uuuuuuuunnnnnnnnnnnnnnnnunnnnnnnnnnnnnnnnnnnnnnnn 12 Figure 4 Pin Code requirement a ai 12 Figure 5 Entering PIN code to pair the device uuuuuuuunnnnnnnnunnnnunnununnnnnnnnnnnnnnnnnnn 12 Figure 6 Docklight Serial Termin
2. Bluetooth serial port icon highlighted showing that the virtual COM port Is ready to communicate and also the software COM number associated to it Bluetooth PIN Code Request Device Name lceBlue Before a connection can be established this computer and the device above must be paired The Bluetooth pairing procedure creates a secret key that is used in all future conmections between these two devices to establish identity and encrypt the data that these devices exchange To create the paired relationship enter the PIN code and click OF Bluetooth PIN Code Ss Figure 5 Entering PIN code to pair the device It is important to mention that the steps above can appear in a different order depending on the Operating System and the Bluetooth driver version we are using Perhaps we are required to enter the PIN code in the moment we ask for the available services In this case we should receive the services virtual COM ports directly after the paring process In the case that two COM ports appear they should be labelled as output and input serial ports Those COM resources are assigned by the Operating system depending on which device initiated the link In our case the requirement was sent from the Windows drivers therefore the communication will be carried out through the output serial port WIRES SERR www emxys com eD support emxys com 12 After this point we can try to connect the
3. bcf STELTS REG bcf STATUS RET aovlw ELTA nove TICON TIMER 1e s PE ds DSEET GIkExt no syne noviv E 10010000 aovwf RES Es aovlw b 130000800 GIE PELE set INTERRUPTS ACTIVE novel INTCOH 2 FROM THIS FOINT Figure 9 MPLAB IDE environment with an opened project NT SERR www emxys com eD support emxys com 18 MENNSEBBED 19 4 Pin assignments ulceBlue2 module offers a direct 3 3V digital interface to external logic components to quickly implement embedded control devices The almost complete PIC18F4550 pin out is available at a DIP style double row 2 54 mm pitch pin out in order to get an easy and cheap way to connect the part to a custom board or a breadboard for fast prototyping purposes In addition the ulceBlue2 pin out is provided with some additional service pins to allow access to the embedded Pearlblue core device for programming purposes and with a direct Mini USB connector that enables immediate Full speed USB connectivity to USB master devices like computers 4 1 Pin Out The scheme below shows a layout of the ulceBlue2 device 1 PearlBlue ak J m j fr h a kn fa j 9 PIC18F4550 al all ell tai al ell al fall all ali bl SIL ral als at ell el mel USB Led USB Power connection resistance Mini USB Connector Figure 10 ul ceBlue2 Layout WIRE SBB Ep iam 20 As depicted below internally
4. enables the integration of Bluetooth communications within embedded systems fast easily and effectively This document provides the information to start with quick hands on practice 1 1 The Bluetooth technology Bluetooth is an open specification to provide short range wireless communications It operates in the unlicensed ISM band at 2 45 GHz using Frequency Hop Spread Spectrum modulation to avoid interference There are two kind of devices Class 2 devices reach up to 10 m with a power of 0 dBm Class 1 devices reach up to 100 m with 20 dBm Bluetooth communicates a master and a slave device Usually each device is able to operate as either master or slave at a time Bluetooth devices have a unique 48 bit address BD_ADDR used as identification This address defines also the way devices negotiate and start radio communication The Bluetooth specification defines the implementation of profiles that run over lower layers of the Bluetooth stack Bluetooth Profiles define a simple way to communicate different devices using a high level protocol Among several Bluetooth profiles the Serial Port Profile was created to make a simple wireless substitution to the RS232 cable that connects many computers and embedded products The final goal of Bluetooth was to create a low cost alternative to the wire connection Although Class 1 Bluetooth devices are specified to reach distances of up to 100 m this can be extended with the use of direct
5. Debug port pin out is depicted for more information these programming debug pins can be found at ulceBlue2 pin out as directly accessible PIC pins As it was mentioned we refer to the ICD2 documentation for further details 15 www emxys com support emxys com 2 3 Power requirements Although the ulceBlue2 comes with integrated input low drop out series voltage regulators to power the electronics inside some limits exist in its operation shown in the following table Some of them are maximum rating parameters so special emphasis is made in the fact that those limits must be carefully observed in any working condition and in other case special care must be taken in the case that these parameters could trespass the limitations Table 1 ulceBlue2 main Specifications Specification Data 3 6 0 1V DC Power supply Maximum Rating Vcc 12 V DC Vcc limited 2 included LDO regulator Internal Operation 33Y Voltage 2 BIOS En Vale 3 3 V 20 mA maximum sink supply current ag Input voltage O to 3 3 V 0 8 V Vref Vdd Vref Vss 40 C to 70 C 5 95 humidity non condensing 16 WIRE SBB Ep iam MENNSEBBED 17 3 Programming ul ceBlue2 ul ceBlue2 module enables fast prototyping and development by means of the integrated capabilities of In Circuit programming and In Circuit Debugging offered by the family of Flash PIC microcontrollers We propose as the perfect combination to develop
6. WIRE RBB www emxys com eD support emxys com al e e ui A ER TEE EHEN a s Er SEE EEG ER Er BEN a a i 1 EF j ka LE f J s gt lm ial a i bed mi ri na Figure 12 Pin Out Distribution In the table below a complete description of Pin Out is included Table 2 ulceBlue2 Pin Out No Symbol Ground 0 V Vcc Pin from auxiliary power 12V gt Vcc gt 3 3V ome e MCU Ping RBO INT AN12 INTO FLTO SDI SDA Digital 10 Analog 6 RBB I O MCU Pin 11 RB3 AN9 CCP2 Digital IO Analog I 8 RB5 11 0 MCU Pin 15 RB5 KBI1 PGM Digital OO 22 MENNSEBBED support emnys com 9 RB6 1 0 MCU Pin 16 RB6 PGC KBI2 Digital IO 11 MCLR 2 MCU Pin 18 Master Clear Reset Vpp ann voltage nput RE3 13 MCU Pin 20 RA1 AN1 Digital IO Analog 43 MCU Pin 21 RA2 AN2 Vref Digital IO Analog 3 MCU Pin 22 RA3 AN3 Vref Digital IO Analog MCU Pin 23 RA4 TOCKI C1OUT RCV Digital IO A SPI CSB aa SPI CSB line for module module 23 PIO 7 I O 41 SPP UART connection off return to command 0 Bluetooth Serial port SPP in UART connection active after BTCOM D2UART command MCU Pin 32 RCO T10SO Digital IO 1 3 MCU Pin 27 RE2 AN7 OESPP Digital IO Analog 13 MCU Pin 26 RE1 AN6 CK2SPP Digital IO Analog i MCU Pin 35 RC1 TLOSI CCP2 Digital 10 33 apo i Meu Pin 38 RDO SPPO Digo 4
7. the ulceBlue2 consists on a PIC18F4550 connected via USART interface with the PearlBlue Bluetooth module The power input of the ulceBlue2 is connected to the USB power input via the Shunt resistor This way no external power supply is needed if the ulceBlue2 is going to be used connected to USB getting the power from there PIN 37 USB D PIN 38 USB D USB Power USART Tx PearlBlue USART RX Bluetooth Module PIC18F4550 PIN 2 Vcc Regulator Regulator Figure 11 ulceBlue2 Internal diagram CAUTION If an external power supply has to exist connected simultaneously with USB connection extra precautions has to be observed in order to limit the power drawing from USB port either limiting the current sourced from USB or removing the shunt resistance to get the power only from the external DC source The pin out includes the almost complete pin out of the PIC18F4550 microcontroller plus some additional pins from the embedded Pearlblue core It is implemented by a two rows DIP style 2 54 mm pitch footprint making easy and cheap to integrate the module both in custom PCB cards and in breadboards available in the market The improved electrical configuration of the IO pins at the microcontroller PICISF4550 allows to interface directly these pins to higher loading components like BJ T based adapting circuits leds buzzers drivers etc Making the module more flexible and robust and also more easy to apply 21
8. ulceBlue2 by means of this virtual COM port through any serial communication program like Windows Hyperterminal or the GNU software DockLight Big VB Erni FA Tr 1563 se F Pa F ite IF oe Farel mr Bi BEL fee EI rn EEIEIE Tag amp i a ee Eu ER 0m ri en Ej Fi Ei I Te Ea m Eu ee T nce I EEE ED Pegel i Bee Lee Dts 1 ff ff E Figure 6 Docklight Serial Terminal screenshot 2 2 ICD2 Connection Aside of tools intended to connect and operate the device via Bluetooth wireless connection by means of the virtual COM port service provided by the embedded PearlBlue core some resources are needed to develop the software for the PIC microcontroller and to program it with the resulting binary files For this purpose we propose as the ideal solution a complete development tool consisting on 1 The ulceBlue2 module target board 2 ICD2 In Circuit debugger from Arizona Microchip 3 MPLAB Integrated Development Environment IDE from Arizona Microchip The ICD2 is the latest In Circuit debugger developed by the PIC manufacturer which enables the possibility to run in circuit debugging over the ulceBlue2 based target board This consists in to have the ulceBlue2 connected to the ICD2 through the PIC ICSP pins present at ulceBlue2 pin out by one side and a computer running the MPLAB IDE connected to the other side to the ICD2 USB or Serial port The program designed to run on the PIC18F4550 microcon
9. 1 RD6 11 0 MCU Pin 4 RD6 SPP6 P1C Digital IO 23 WIRE SBB Ep ine lt ve Notes Refer to Arizona Microchip Datasheet for microcontroller family PIC18F4550 for further Information Programming pins also present at ICD Debug amp Programming connector Refer to Arizona Microchip Datasheet and Mid Range Manual for microcontroller family PIC18F4550 for further information about the electrical requirements for those pins The PIO 7 pin is described at PearlBlue Getting Started Manual as a key pin to operate the transparent USART SSP Serial port profile mode among any PearlBlue core based devices like ulceBlue and ulceBlue2 and other Bluetooth parts that include the SPP as an available service This mode allows to establish a connection across Bluetooth SPP virtual COM port service in a host computer for example and the USART pin out of PearlBlue core device i e USART pins at PIC18F4550 micro or between two PearlBlue core based devices In a transparent mode as if a virtual serial direct cable is connected For this operation mode please refer to PearlBlue Getting Started Manual for more information 24 EMB CBBED support emnys com
10. al screenshot 13 Figure 7 ICD2 connection scheme cc u a a 14 Figure 8 ICD2 Programming amp Debug port pin Out uuuuuuuuunnnunnunununnnnnnnnnnnnnnnnn 14 Figure 9 MPLAB IDE environment with an opened project uuuuuuuunnnnnnnnnnunnnnnn 18 Figure 10 ulceBlue2 Lay OU ce anne 20 Figure 11 ulceBlue2 Internal diagram uuuuuunnunnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn nn nun nun 21 Figure 12 Pin OUt DistribUHON sanieren 22 A WIRE SBB Ep iam ve Index of Tables Table 1 ulceBlue2 main Specifications uuuuunnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn 16 Table 2 ulceBlue2 Pin Out anne 22 MARKS BBED 1 Introduction and overview Bluetooth is a wireless communication protocol conceived to enable high speed data transfer through portable devices Its physical layer can be implemented as a light weight small inexpensive and low power electronic device and therefore is being mainly used for handheld computers and phones within the consumer electronics market However its applications within embedded systems are countless and twofold on one side Bluetooth enabled embedded systems may communicate with handheld devices extending its capabilities to supervision control and data acquisition on other side embedded systems may communicate between them easily at high data rates and at low cost up to 100 meters in distance and even more ulceBlue2 module an evolution of mature ulceBlue
11. ce and Next Windows will try to detect the devices around 4 You will see a window showing the Bluetooth devices discovered ulceBlue2 Should be among them By right clicking on any of them you can see its Bluetooth address gt My Bluetooth Places Entire Bluetooth Meighborhood rchiva Edici n Wer Bluetooth Favoritos Herramientas Ayuda ates r I ma j B squeda Carpetas IceBlue Nokia 7610 Bluetooth Tasks Bluetooth Setup Wizard ie View My Bluetooth services H Search For devices in range g View or modify configuration Other Places E Desktop a My Computer OO Bluetooth Exchange Folder My Bluetooth Places WIRE SBB Ep LES 11 Figure 3 Windows Device Discovery wizard In this state if you double click the device you will be able to discover the services available which in this case will be the serial port If it is the first time you access to the device you will be asked to PAIR the board AJ Bluetooth PIM Code Required Bluetooth device IceBlue is attempting to connect to this computer Click here to proceed with the connection To deny access ignore this prompt is Dibujo Paint Figure 4 Pin code requirement This consists on an acknowledgement operation to improve the safety in a network highly exposed to intrusion like the Wireless based ones By default the asked key for ulceBlue2 is set as 1111 Entering this code when required will set the
12. complete embedded solutions based on ulceBlue2 modules the development system composed by the Microchip MPLAB Integrated Development Environment IDE that can be downloaded from Microchip web page and the ICD2 In Circuit debugger from the same manufacturer this device has to be purchased separately from Microchip 3 1 Programming the module with ICD2 Once we have configured our MPLAB IDE to work with ICD2 as a programmer amp Debugger device this is possible in the moment of the project creation or at the menu Programmer Select Programmer MPLAB ICD 2 we have to connect to it by means of Programmer Connect Once we succeed the only remaining step is to have some binary HEX file at the project or to build successfully a new one pressing Project Build all and download the firmware to the microcontroller with the menu command Programmer Program This last option must appear when the Connect operation gets success a MPLAB IDE v7 11 File Edit View Project Debugger Genuss Tools Configure Window Help Select Programmer None 1 PICSTART Plus 2 MPLAB ICD 2 3 MPLAB PM 3 4 PRO MATE II 0x1b39 MPLAB ICD 2 Setup Wizard OM C estim asm maln MCU configu Fort B Outputs Fort D Outputs Connect Download ICD Operating System escaler for WatchDog Settings SAE aovwf TESTA novlw Br nove SPBRG 9600Bauds aovlw b 00100001 USART_RX TIMER interrupts activated nowwf FIE1
13. ge we refer to the MPLAB User Manual for the IDE and the PIC18F4550 datasheets for an in depth study of the microcontroller both at the programming level and at the hardware platform operation ENNBBBED support emxys com MENNSEBBED 2 Connecting ul ceBlue2 ul ceBlue2 module enables the integration of Bluetooth communications within embedded systems fast easily and effectively In this chapter we will review the basic procedures to initiate the connection from and to the ulceBlue2 module with a remote device via Bluetooth and also how to program the microcontroller and how to initiate an In Circuit Debug session with the Arizona Microchip ICD2 debugger 2 1 Wireless connection One of the main advantages of the Bluetooth wireless link is its plug and play feature The current operating systems running laptops PDA s mobile phones implement these functions as a part of the software drivers designed for Bluetooth adapters such as USB dongles PCI or PCMCIA cards and more The PearlBlue proprietary firmware is not an exception to this and incorporates all the software procedures needed to enter on an existing Bluetooth network discover available devices initiate a link etc The ulceBlue2 has the embedded PearlBlue core module configured as a Serial bridge and ready to be discovered by other Bluetooth devices by default For this working mode to be possible the ulceBlue2 pin PIO7 must be open or at low state When p
14. in PIO7 is set this serial bridge mode is disabled and the PearlBlue module enters in Command mode Please refer to PearlBlue Manual for more information about this operation mode In order to make a first approach to the ulceBlue2 Bluetooth communication lets Suppose we have a set of devices like the following A computer with Windows XP SP2 A USB to Bluetooth dongle connected to the computer we use the Conceptronic CBT100U dongle as a reference An ulceBlue2 Module in a target board that powers it at 3 3 V Other Bluetooth devices optional we use a Nokia S60 Smartphones and an iPaq Pocket PC 3 Other platforms differ in the way the connection is achieved but the procedure involved is Similar INAS BBED Ro 10 Laptop With USE Bluetooth dongle running Wirelass BlueTooth link Bluetooth featured mobile phone Bluetooth PDA or Pocket PC Figure 2 Bluetooth network with ul ceBlue2 1 Connect a power supply to the target board where the ulceBlue2 module is placed and enable the Bluetooth on the other devices you may have ulceBlue2 s default start condition is being discoverable The PIO 7 input pin has to be at low state to be able to activate the USART connection see below at point 4 and PearlBlue Manual for more information about PIO 7 operation 2 Open the Windows Bluetooth devices manager by clicking twice on the icon at the system tray or into the Control Panel 3 Click Add devi
15. ional antennas Contact emxys for specific solutions in this area The complete Bluetooth more than 1000 pages specification cab be found at www bluetooth com For beginners a good starting point is http en wikipedia org wiki Bluetooth MANNS BBED Ro 1 2 The ulceBlue2 Module The ulceBlue2 module is an embeddable control module based on the USB featured microcontroller PIC1L8F4550 from Arizona Microchip To implement the Bluetooth communication capabilities the module contains a full featured core of the PearlBlue module on the same board which is connected to the USART pins of the PIC microcontroller PearlBlue core device implements the Serial Port Profile and allows simple point to point wireless communication of devices that incorporate this profile over Bluetooth PearlBlue connects the radio serial port to a physical UART that can be easily interfaced to an embedded microcontroller microprocessor or computer Moreover PearlBlue can work on its own and offer 6 general purpose input output pins For a detailed information about the PearlBlue operation and capabilities refer to the PearlBlue User Manual PearlBlue may act as a master or an slave This feature allows it to wait for connections or to initiate a connection Therefore the full power of the PearlBlue module is available in this device both from the air side and from the serial channel in this case available for the microcontroller code Figure 1 The u
16. lceBlue2 module The board offers in a DIP style double row pin connector the PIC18F4550 pin out with some exceptions like the clock and power pins This allow to implement almost any application intended previously for this MCU with no constrain with the advantage of having together a USB interface combined with Bluetooth serial communications included with no glue code or electronics required This results in a true glueless solution to embed Wireless Bluetooth communications in any equipment or electronic device with the minimum effort and investment and a maximum of efficiency 7 WIRE RBB www emxys com eD support emxys com 1 3 User documents More information and documentation about the ulceBlue2 module can be found at the web site http www wirelessembedded com It is possible to find free documents for all the public for registered users as well as for customers users 1 4 Requisites All necessary information to operate the full capabilities of ulceBlue2 device and its embedded PearlBlue core module are contained in this document and in the PearlBlue User Manual Due to the fact that the ulceBlue2 module is powered by an Arizona Microchip PIC family Microcontroller some expertise is needed on these devices to start working This manual refers to some specific details of the MPLAB integrated Development Environment IDE concerning the tools and procedures to work with the ulceBlue2 board but to get a more basic knowled
17. troller is debugged directly on its final platform in this case the ulceBlue2 device but showing on line the execution of the code in the simulator included in MPLAB environment in several formats line by line animation etc and also the contents and variations of the Special Function Register SFR values 13 MARKS BBED ee Therefore the capabilities available are those which are familiar at the MPLAB simulator animation simultaneous code inspection and SFR changes and so on but with extended features including the operation of USART and AD conversion USB Serial Cable RJ11 Target Cable Figure 7 ICD2 connection scheme In the image above we can appreciate the connection scheme of the development system composed by the devices mentioned It is important to refer to the user to the documentation included in the ICD2 package which mentions several connection modes Which we depict here is the USB connection with the PC platform running the MPLAB IDE No power is needed in this case to supply the ICD2 device Although power is required to apply to the target This is motivated to the internal configuration of the logical drivers for programming pins inside ICD2 being supplied from the external side as a requisite Pin Signal Not Used i PGC PGD Woo 3 Ground 4 5 6 Figure 8 ICD2 Programming amp Debug port pin out 14 WIRE SBB Ep iam In the figure above a layout of ICD2 programming amp
Download Pdf Manuals
Related Search
Related Contents
FARO RICARICABILE CON PANNELLO SOLARE - D-Mail 取扱説明書 - マックスレイ Intel Voice API for Linux Demo 05-2342-002 User's Manual Les Dames de fer du Liberia AXF View PDF - e Samsung Samsung Corby 2 S3850 Manuel de l'utilisateur View - Malaysian Communications And Multimedia Commission C 04302xx0 E 04300xx0 S 04301xx0 Zuvo™ 04303xx0 Copyright © All rights reserved.
Failed to retrieve file