View Full Version : I need help with FBUS protocol
juliojj14
07-01-2003, 03:12 AM
I need an example about how to send a hex secuence to read a sms from a nokia phone.
I'm interesting in the protocol because I don't understand what I must send throught the serial port
Thanks
leg0man
07-01-2003, 10:00 AM
Hi juliojj14,
search in google for "gnookii" or/and "gammu" (gammu=gnokii2).
Download the source code. In ../docs are the specifications for m2bus, mbus, fbus, etc. and the commands for the different Nokia Handys..( 7110 series, etc.)
ciao
leg0man
juliojj14
07-01-2003, 03:17 PM
I read those gnokii documents I'm using that information for my program but in those docs there are any examples for Fbus protocol and I am no sure how use the four last bytes (not the xor checksum, the others) because of that I need and full example of a command to send sms or other but I need that it works.
for example, for send a sms I must send the command:
1e 00 0c 02 00 XX 00 01 02 yy yy yy yy ZZ ZZ SQ CHK1 CHK2
1e=Serial/Fbus
00= DestDev is the mobile phone
0c= ScrDev is the PC
02= Message type: send a sms
00= it's always 00
XX= I don't know what lenght put in this position
00 01 02 is the secuence for send a sms I think, I read this in
the gnoki protocol docs.
yy yy yy... I think that there must go the message but I don't
know how to put it (in ascii changeD to decimal??)
ZZ ZZ I don't know if here I must put the "FramesToGo" byte, but
also I don't know how to use it
SQ I don't know how use it and if always I must use it
chk1 and chk2 is the only thing that I know sure
I have a little mess and I need some help.
If you know any example of a command, please send me or post it.
Thanks
h_r_f
27-01-2003, 10:04 PM
From reading about MBus commands in this forum
SQ is sequence number, start at 1 or 2 then increase by 1 for each new command!
Im not sure if its the same for FBus, this post is probably more for my benefit when I get corrected :)
slikmik
28-01-2003, 12:42 AM
yeah just edge it up by one
the checksums different though not as easy as mbus ;)
Mike
CRC = 0;
for (i = 0; i < (2 + CMD_LEN); i++)
CRC ^= frame[i];
count all octets except the CRC :)
have you tried AT commands? it can be easier if you just want to do phone management etc
Powered by vBulletin® Version 4.2.0 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.