1 / 26

Remotely Monitored Bluetooth Network Using PIC Microcontroller and Ericsson GSM Module

Prepared by. AbdelHak, Sherine. &. Wehbe, Mario. 06/13/2002. Remotely Monitored Bluetooth Network Using PIC Microcontroller and Ericsson GSM Module. Introduction. PIC18C452. GSM. Bluetooth. Conclusion. Accomplishments. Problems. Future Ideas. OUTLINE.

oya
Télécharger la présentation

Remotely Monitored Bluetooth Network Using PIC Microcontroller and Ericsson GSM Module

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Prepared by AbdelHak, Sherine & Wehbe, Mario 06/13/2002 Remotely Monitored Bluetooth Network Using PIC Microcontroller and Ericsson GSM Module

  2. Introduction PIC18C452 GSM Bluetooth Conclusion Accomplishments Problems Future Ideas OUTLINE

  3. As interest in Bluetooth was increasing, and lots of ideas were constantly emerging, e.g.: a headset that communicates with a mobile phone in your pocket, or even in the other room, or a refrigerator communicating with your Bluetooth-enabled computer, informing it that food supply is low, and informing the retailer over the internet. Not only are home/office/factory appliances (such as entertainment systems, refrigerators, washers, dryers, security systems, and control systems) beingnetworked, but mobile pervasive devices (such as smartphones, PDA etc …) are also being brought into this environment, where they interact with the available network. Providing the necessary processing power to control or monitor this network via the PIC18C452 microcontroller As such, the idea is to combine the hi-tech Bluetooth with the highly integrated 8-bit microcontroller, the PIC18C452, embedding a GSM module, to build a wirelessnetwork which can be controlled remotely! INTRODUCTION

  4. Bluetooth Device Bluetooth UART PIC18C452 Microcontroller Bluetooth UART Device GSM Module INTRODUCTION User's Mobile

  5. Bluetooth networking INTRODUCTION GSM connectivity Processing Ability

  6. INTRODUCTION BT Device BT Device 10-100 m 10-100 m BT Device 10-100 m BT Kit 7 pins UART (2 pins) Keypad PIC18C452 Microcontroller 6 pins LCD User's Mobile UART (2 pins) GSM Module GM47 or Ericsson T10

  7. CMOS 8-bit microcontroller 10 MIPS (100 ns instruction execution) 77 single word instruction 40-pin package 10-bit A/D converter 3-wire Serial Peripheral Interface (SPI) 2-wire Inter-Integrated Circuit (I2C) Universal Synchronous Asynchronous Receiver Transmitter USART Windowed Device (Erase by UV rays) Microchip "C" compiler Software simulator (MPLAB) PIC18C452

  8. Can be configured in the following modes: Asynchronous (full duplex). Synchronous - Master (half duplex). Synchronous - Slave (half duplex) PIC18C452 USART 8/9 bit data mode (Transmit and Receive) Programmable Baud Rate Only two pins are used (RC6/RC7) Configurable Interrupts

  9. Has several registers: SPBRG - Baud rate generator: allows the baud rate to be set. TXSTA - Transmit status and control: used to control transmission. RCSTA - Receive status and control: used to control reception. TXREG - Transmit data register: used to write data to be transmitted. RCREG - Receive data register: used to read the received data. PIR1 - Peripheral interrupt flag register: contains interrupt flag bits. PIE1 - Peripheral interrupt enable regs: enable bits for USART interrupts. PIC18C452 USART

  10. PIC18C452 USART

  11. RS-232 interface "PDU mode" interface protocol USART uses logic level signals RS-232 uses positive/negative voltages Use interface chip (MAX232) T10 Mobile Phone

  12. T10 Mobile Phone RS-232 interface "PDU mode" interface protocol Null modem connection

  13. T10 Mobile Phone Three interface protocols for SMS control Block Mode:suitable for use where the link may not be completely reliable Text Mode:character-based interface, suitable for unintelligent terminals or terminal emulators. PDU Mode: hex-encoded binary transfer of message blocks, suitable for software drivers which do not understand the content of the message blocks and can only pass to the "upper level" software resident in the terminal equipment.

  14. T10 Mobile Phone RS-232 interface "PDU mode" interface protocol 01 80 11 00 08 81 30559142 3 0 0 3 5 5 5 5 1 9 9 1 2 4 4 2 Length of phone nb TP-Message-Reference (Reply Path) SMS-SUBMIT PDU SMSC information Length of SMSC information Type-of-Address Phone number

  15. T10 Mobile Phone RS-232 interface "PDU mode" interface protocol 01 80 11 00 08 81 30559142 00 00 AA 03 E8B21B h e n 1101000 110010 1 11011 10 000 TP-User-Data-Length TP-Validity period TP-PID: Protocol Identifier TP-User-Data TP-DCS: Data coding Scheme (compressed data)

  16. T10 Mobile Phone RS-232 interface "PDU mode" interface protocol Command to send a message 01 AT+CMGS=17 > 0180 11000881305591420000AA03E8B21B

  17. Specification for short-range wireless communication of data and voice Facilitates protected ad hoc connections Small, cheap radio chip (9x9 mm) Low Power Consumption (100 mW) Frequency Hopping Spread Spectrum 79 hops displaced by 1MHz Max Rate 1600 hops/sec BLUETOOTH

  18. BLUETOOTH Ericsson Bluetooth Application Tool Kit Complete & flexible design environment

  19. BLUETOOTH HCI Command interface to Baseband controller & Link manager Access to Hardware status & control registers Transport mechanisms USB, UART

  20. Four types of HCI packets exist BLUETOOTH HCI Command Packet HCI ACL Data Packet (data) HCI SCO Data Packet (voice) HCI Event Packet LSB MSB Packet Indicator HCI Packet

  21. Host:1 PIC HCI:1 HCI:2 Host:2 PIC HCI_Write_Scan_Enable HCI_Inquiry Inquiry Started Scan_Enable LAP, Inquiry_Length, Num_Responses Command Complete Inquiry Scan Mode Num_HCI,Command_Packets, Command_Opcode, Return_Parameters Command Status Status, Num_HCI, Command_Packets, Command_Opcode AIR Inquiry Mode Inquiry Result Num_Responses, BD_ADDR[i], Page_Scan_Repetition_Mode[i], Page_Scan_Period_Mode[i], Page_Scan_Mode[i], Class_of_Device[i], Clock_Offset[i]. Inquiry Timed Out Inquiry Complete Status.

  22. HCI:1 HCI:2 Host:1 Host:2 HCI_Create_Connection Connection Request BD_ADDR, Packet_Type, Page_Scan_Repetition_Mode Page_Scan_Mode, Clock_Offset, Allow_Role_Switch. BD_ADDR, Class_of_Device, Link_type. HCI_Accept _Connection _Request AIR BD_ADDR, Role Command Status Status, Num_HCI, Command_Packets, Command_Opcode Command Status Status, Num_HCI, Command_Packets, Command_Opcode Connection Complete Connection Complete Status, Connection_Handle, BD_ADDR, Link_Type, Encryption_Mode. Connection Established Status, Connection_Handle, BD_ADDR, Link_Type, Encryption_Mode.

  23. Accomplishments Sending SMS from the PIC18C452 Bluetooth connection between two microcontrollers Winning MI2U contest (Mobile Internet Initiative to Universities) CONCLUSION

  24. CONCLUSION Problems Operating system incompatibility Shortage of resources

  25. CONCLUSION Future Ideas Control the devices by SMS GM47 instead of T10 mobile phone Bluetooth chip instead of Application kit

  26. Thanks to Dr. R. Ayoubi Dr. C.Sarraf Dr. I.Dagher Mr. N.Moujaes Mr. E.Nini Mr. N.Daoud

More Related