Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
www.pantechsolutions.net
WHAT IS BLUETOOTH?
Bluetooth is a proprietary open wireless protocol for exchanging data over short distances (using short length radio waves) from fixed and mobile devices, creating personal area networks (PANs). It was originally conceived as a wireless alternative to RS-232 data cables. BlueTooth is a promising standard for short range wireless communication. BlueTooth uses the same frequency as WaveLan but with much less effect but anyhow some claim that a WaveLan can not co-exist with a fully equiped BlueTooth environment. Bluetooth is a wireless technology for transmission of voice and data over a short distance. RXD and TXD pin of bluetooth Evaluation kit connected with the controller through serial port
Bluetooth interface
HELLO blue2th
2.4GHz RF Communicati on
HELLO Xbee!
8051
AGN:
;timer 1, mode 2
;8-bit, 1 stop bit, REN enabled ;start timer 1 ;transfer "Y" ;transfer "E"
;transfer "S" ;keep doing it ;serial data transfer subroutine
ACALL
XMIT: HERE:
;load SBUF ;wait for last bit to transfer ;get ready for next byte
C CODE CONTD
void send_command(unsigned char array[]) { unsigned char i; TMOD=0X20; TH1=0XFD; SCON=0X50; TR1=1; for(i=0;array[i]!='\0';i++) { SBUF=array[i]; while(TI==0) { TI=0; } SBUF=0x0D; while(TI==0) {} TI=0; SBUF='\n'; while(TI==0) {} TI=0; }