Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

System combing SMS, PIC and FBUS protocol

Status
Not open for further replies.

jax79

Newbie level 4
Joined
Dec 5, 2007
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,336
Hello,
I wish to know if it is possible to make a system which can 'control and receive' the status of any device at home via sms using the following resources.
1. Nokia 3510i
2. PIC 16f877a (UART)
3. FBUS protocol.

Could you provide me with some links where i can find the relevant assembly codes? Links on UART communication would also be helpful.
Please help me with my project.
Thanks in advance...
 

sms con pic

Hi,
For details on FBUS visit : **broken link removed** .
Regards,
Laktronics
 

fbus pic

Thanks for the reply.

I wrote a small section of code for initialising FBUS and for sending the 'GET SOFTWARE'
command.This is the first time I am using the UART module.So plz point out if
there are any mistakes in the following code section.

:_____________________________________________________________________________________
banksel TXSTA
bcf TXSTA,TX9; 8 bit transmit
bcf TXSTA,SYNC; asynchronous
bsf TXSTA,BRGH; high speed
banksel RCSTA
bsf RCSTA,SPEN; enable serial port
bcf RCSTA,RX9; 8 bit
bcf RCSTA,ADDEN;disable address detection
banksel SPBRG
movlw 0x0A
movwf SPBRG; move 10(dec)for 115200 baud
banksel TRISC
bsf TRISC,7
bsf TRISC,6; RC7&RC6 as 1 for UART
banksel PORTC
call fbus_initialize

;###########################################
; send 1E,00,0C,D1,00,07,00,01,00,03,00,01,60,00,72,D5 to
; phone(as given in embedtronics) to get software version
;#############################################

banksel TXSTA
bsf TXSTA,TXEN; enable transmission
banksel TXREG

send_command_phone_version

movlw 0x1E ;
movwf TXREG ; data immediately transferred
check_TXREG ; to TSR.
btfss PIR1,TXIF; wait for transmission to complete
goto check_TXREG; and TXREG to become empty

movlw 0x00
movwf TXREG
check_TXREG1
btfss PIR1,TXIF
goto check_TXREG1;;;;

movlw 0x0C
movwf TXREG
check_TXREG2
btfss PIR1,TXIF
goto check_TXREG2;;;;

movlw 0xD1
movwf TXREG
check_TXREG3
btfss PIR1,TXIF
goto check_TXREG3;;;;

:
:
:similarly
:
:
:

movlw 0x72
movwf TXREG
check_TXREG14
btfss PIR1,TXIF
goto check_TXREG14;;;;

movlw 0xD5
movwf TXREG
check_TXREG15
btfss PIR1,TXIF
goto check_TXREG15;;


;---------------------------------------------
fbus_initialize
movlw 0x80 ; 128(dec)
movwf count1 ; count1 equ 0x20
fbus_initialize_loop1
call send_U_asynchronous
decfsz count1,1; loop 128 times
goto fbus_initialize_loop1
return
;----------------------------------------------
send_U_asynchronous
banksel TXSTA
bsf TXSTA,TXEN ; enable transmit
movlw 0x55
movwf TXREG ; move 'u' to TXREG
return
;-----------------------------------------------
 

pic fbus sms

Hi,
Before you do anything with FBUS, I suggest you to communicate with the members of the thread , who are also doing similar project, but on PC. The FBUS stuff is really complicated and any small mistake in code will take you round in circles. I also suggest you to consider changing your project using a mobile which is AT command compatible which will be easy to handle in a Microcontroller.
Regards,
Laktronics
 

fbus to pic

Thanks once again..
I ll post the codes if I can finish the project.
:D
 

fbus + pic

hello!! i also have a similar project just like him but mine is the interfacing of the benq m23 GSM Module on a pic16f877 microcontroller. my problem here is that i do not know where to start like what to initialize on my pic controller or what to do to make them communicate. mine is to just send a sms using the pic miicrocontroller. tnx
 

fbus sms

I connected my phone to serial port via a max232 n just switched the phone ON and OFF. this is what hyperterminal showed. Could u tell me what this means?

When i switched the phone ON- UUUUUUUU Ðà -UUUUUUUU 5ÀÁÒ
'' OFF- UUUUUUUU 5ÀÂÑ
 

f-bus sms

Phone is sending message while 'U' chars end. 'U' or 'A' asciis 0b01010101 or 0b10101010 same using for sync and auto baudrate recognation. After U my guess you are getting status of your phone.
 

asm code for fbus based sms system

jax79,

if u use serial terminal solfware to read HEX, H.terminal only show ascii code, if i not mistaken, phone is talking to u with HEX not ascii
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top