Nokia Fbus Version 01

Attention: open in a new window. PDFPrintE-mail

History

Discused as a posability some time ago.. (I.e. why carn't my server text me when the power gose off) after all people use thier pc's to send sms and conect the phones to them. So it seemed logical.

A little while latter i saw a the post on hackaday "SMS Remote Control" which prompted me to renew my idea and do some googleing (I alwasy have a list of projects on the backburnner awating info to apear on the net).

So i got an old nokia and set about getting a cable.. How much? for a cable.. F##k off. So i set about building one 1 hour latter and no loss to my pocket.

I connected it to my test machine installed ubuntu (about 30mins, nice and simple) and installed gnokii and tryed to send a sms to my other halfs phone nothing happened (i was expecting the phone to beep or show some sign) so i did it again, and again, etc.. until i got a reply "stop sending me bloady messages". oops. but it worked.

So back to google and many versions of code out there talking about AT commands so i tryed them but to no joy. then i found that you need a phone with a built in modemto use AT commands and mine didn't have that nor did any of the old phones i had laying around, so how did gnokii do it?

Ok so there are AT commands, mbus, and fbus, and no pic code out there for FBus,which is what my phones work with. I then wrote a vb app to test this and also allow me to get to grips with Fbus, it is far simpular to debug than a PIC. this worked so but had to use a baud rate of 115200 which is realy fast and dosn't allow for mush code between transmites and also told me i would need to use a fast pic (20mhz)

Construction

The Circuit

The circuit is a very simple standard PIC board cpu (16F627 becuase it has a usart), crystal, ICP, reset switch, the only other bit is a MAX232 straped to the side to monitor the comunications between PIC and Phone to make it easyer for me to debug (rather than just 3 LEDS).

Code

This code is more of a example than a fully featuring code (as i feal that it would be a good base to start from for the various projects). All it dose is connect to the phone (using the sync command 0x55) then get the phone version command to confirm we have connection. After that it responsed (via interupts) to RB0 change (which sends a predefined message to a predefined number) and incomming text message (which checks the number of the sender against the predefined number sends another predefined message to the predefined number).

That is basicaly it with the base code i plan to build servel things which will either monitor, or control anything. As I write other apps I will publish more.

All you should need to do is add your predefined number and the smsc number (this can be got by sending a text message whilst monitering the comunications and extract the smsc number, or using gnokii).

Note I have not inculded a precompiled hex becuase I would not know what predefined phone number to use (and I don't fancy getting loads of strange text messages) also the prepacked sms messages are restricted to 5 char but this could be amended simply by changing the msg length bit in the Fbus_SendSMS_Start function.

oh and this is only beta code.

many thanks
calvin streeting

 

For more info on Fbus see

http://www.embedtronics.com/nokia/fbus.html
http://cvs.savannah.nongnu.org/viewcvs/gnokii/Docs/protocol/nk6110.txt?rev=1.32&root=gnokii&view=markup
http://wiki.gnokii.org/index.php/Protocol_description
http://www.gadgets.demon.co.uk/nokia61xx/protocol.html

04 Jan 2008 corrected pdf, i had the phone tx,rx around the wrong way (oops)

05 Jan 2008 I finaly got a more moden phone a 6020 and whilst play with it found out that there are versions of the nokia fbus protocol and thus have added that this is for version 1, but the good news (well for others) is that i am now going to write a version 2 that should include "fbus version 2" support and also i have been writing my pic code in modules using linker scripts to make them more resuable. more latter..

Crcuit Pic Code VB Code


Comments 

 
+1 #80 Marcus 2010-03-31 04:43
Hi Guys.

I have been Watching yours Blogs and I am wondering If you can get any information of FBUS V3.

I am doing the same test that you were doing, but I tried with Nokia 1208 which use V3, but I couldn’t send or receive SMS or Calls.

So, I would like to know If you can bring me any details of FBUS V3 Protocol, because I have been trying almost all, but I don’t get satisfactory results.

Like and example, when I tried to send SMS, the Phone answers me with:

1E_10_00_7F_00_02_0 2_00_1C_6D -> This is AKN

And then the phone sent:

1E_10_00_02_00_0C_0 1_1B_00_3F_01_01_00_00_00_00_01_42_1F_3F


Thanks in advance for all halp that you can bring me.
Quote
 
 
0 #79 Calvin 2010-03-16 18:39
Sorry forgot to upload code to new website
Quote
 
 
0 #78 Amr El-Zidy 2010-03-16 06:50
i want to use nokia1200 for home automation and can't find the its commands i only know that it use Fbus protocol Version 3

have anyone the FBus protocol Version 3 (Nokia1200 commands)?
My mail: amr_elzidy@hotm ail.com
Quote
 
 
0 #77 advancer01 2004-02-18 00:00
my e-mail: es_tranca@yahoo .es
Quote
 
 
0 #76 advancer01 2004-02-18 00:00
Dear Ryan.
Please can you help me, this is what my nokia 1200 returns when I try to send a message:
1E 0C 00 02 00 0C 01 1B 00 F0 01 01 00 00 00 00 01
Please, this is a university final project. Thanks in advance.
Quote
 
 
0 #75 shravan 2004-02-07 00:00
In my final year project, I want to control the operation of pc through sms. I have almost done my project. i left wit SMS part. I got nokia 1200, its done through FBus and a software is needed.v have tried to send a msg frm mobile to PC by using version 2 but we dint get the result so by using nokia 1200 protocol version-3 its possible to send msg and to recive that message at PC so pls send me the information about nokia 1200 protocol version-3.pls help me..pls its very imp for my project to proceed further....pls inform to ash.shr4b2@gmail.com..... RYAN please help me....
Quote
 
 
0 #74 Ryan 2004-02-06 00:00
Sudhee send me your email, i can help you
Quote
 
 
0 #73 sudhee 2004-02-06 00:00
In my final year project, I want to control the devices through an SMS. I have almost done my project. What is left, is just to send SMS.

With great difficulty, I got nokia 1200. I found from some articles on internet, to connect this mobile with the computer, its done through FBus and a software is needed.v have tried to send a msg frm mobile to PC by using version 2 but we dint get the result so by using nokia 1200 protocol version-3 its possible to send msg and to recive that message at PC so pls send me the information about nokia 1200 protocol version-3.pls help me..pls its very imp for my project to proceed further....pls inform me to the mail id attached ...
Quote
 
 
+1 #72 andualem 2004-01-23 00:00
hi..
i want somebdy to give me the correct combination of gsm model and pic.and also the type of programming language i have to use
Quote
 
 
0 #71 s purendar 2004-01-20 00:00
nkia 1208 rx tx
Quote