GSM-Forum

Go Back   GSM-Forum > Non GSM/Mobile Related Forums > Bluetooth > Bluetooth-Software


Reply
 
Thread Tools Display Modes
Old 01-11-2004, 20:45   #1
scarletbast
Junior Member
 
Join Date: Jan 2004
Posts: 1
Member: 49083
Status: Offline
Thanks: 0
Thanked 0 Times in 0 Posts
How to write a BT application?

Hi all. I'm currently doing a project to obtain the RSSI value of another BT device. It should be simple enough to anser so I really hope someone can help.

I'm using a USB dongle and BlueLab.

My question is, do I have to do all the initialisation procedure like the manual says (i.e initialise the scheduler, configure the HCI driver, etc)? The example applications provided (e.g bridge.c) do not follow this procedure.

Also when to call the Sched() (do I even have to call it)? In the bridge.c for example, it is called at the end of main(). What if there is an event occurring before this function is called. Will I miss the event?

Generally this is what I've done so far. Please feel free to comment on it:
------------------------------------------------
#define malloc macros

int main()
{
call functions
}

void function()
{
call #define to malloc for this prim (e.g MAKE_PRIM_C(DM_HCI_INQUIRY))
set param
VmSendBlueStackPrim(DM_PRIM,prim);
}

void handleBlueStack()
{
case statements
}

Thanks everyone.
  Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 19:10.


GSMCity - GSM Hosting - 1999-2009
Page generated in 0.06529 seconds with 6 queries