You Are Here:

Community: Developer Discussion Boards

#1 Old Make a Device act as Master/Slave - 2006-09-05, 15:01

Join Date: Jul 2006
Posts: 23
tfm
Offline
Registered User
I just wanna ask is the following thing possible:

A bluetooth device runs 2 thread A & B.
thread A is running an RFCOMM service on it and Thread B is acting as a slave to another piconet.

When thread A receives a message from some other bluetooth device, it just passes the message to Thread B which can send it to the master to which it is acting as a slave.

In short is this the way to make a device act as master for 1 piconet and slave for another piconet ?

Thanks
Reply With Quote

#2 Old Re: Make a Device act as Master/Slave - 2006-09-14, 14:37

Join Date: Dec 2005
Posts: 1,159
Location: England,UK
jimgilmour1's Avatar
jimgilmour1
Offline
Forum Nokia Champion
Quote:
Originally Posted by tfm
I just wanna ask is the following thing possible:

A bluetooth device runs 2 thread A & B.
thread A is running an RFCOMM service on it and Thread B is acting as a slave to another piconet.

When thread A receives a message from some other bluetooth device, it just passes the message to Thread B which can send it to the master to which it is acting as a slave.

In short is this the way to make a device act as master for 1 piconet and slave for another piconet ?

Thanks
Have you tried using two Bluetooth devices on Windows XP. Both my BT USB stubs were detected.

I modified the Bluecove and changed intelbth.dll to intelbth2.dll
copied and changed file com_intel_bluetooth_BluetoothPeer.h
to com_intel_bluetooth2_BluetoothPeer.h

and all entries called
JNIEXPORT jint JNICALL Java_com_intel_bluetooth_xxxxxxxxxxxxxxxxxxxx
to entries
JNIEXPORT jint JNICALL Java_com_intel_bluetooth2_xxxxxxxxxxxxxxxxxxxxx

For java change the file \BlueCoveWinXP\src\com\intel\bluetooth\
BluetoothPeer.java
from

PHP Code:
public class BluetoothPeer
{
    static {
        
System.loadLibrary("intelbth");
    }
    
    class 
InquiryThread extends Thread
..
..
.. 

to
PHP Code:
public class BluetoothPeer
{
    static {
        
System.loadLibrary("intelbth2");
    }
    
    class 
InquiryThread extends Thread 
System.loadLibrary("intelbth2");

Rebuild the new code and now you can have one device set as master and one as slave with your code passing information between adapters.

This is two networks that are using two seperate bluetooth networks
Jim
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
How to build GCCE target dsiorpaes Symbian Tools & SDKs 5 2008-09-18 07:54
s60 3th. Building error. sberserker Symbian Tools & SDKs 11 2006-03-09 12:38
MAKE MAKE MAKE MAKE -files!!! Sambon5 Symbian Tools & SDKs 0 2005-12-26 19:00
Bluetooth Security: What exactly is an untrusted device? rahulmcs Bluetooth Technology 1 2005-12-02 07:26
Connecting to Bluetooth SPP device jameelh Python 5 2005-07-05 13:16

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia