Help me, please ... I'm new with Bluetooth tecnology

Hi everybody! I'm new in Bluetooth tecnology and I'm lost with one problem ... can somebody help me, please?
I have to change a program implemented in Java and Bluetooth. The problem is that I'm new in both tecnologies ... This program runs on a computers with Linux Debian OS. This program uses 3 bluetooth dongles connected in this computer. The first dongle keeping doing Inquiry to find devices (phones). The second dongle must stay alert to receive Bluetooth messages (files). The problem is that the dongle that is staying alert is the first dongle, that is also doing the inquiry. Since the Inquiry service blocks the others services, I don't have any dongle staying alert to be detected...
Researching a little, I found out that the method to do a dongle stay alert to receive messages is the DiscoveryListener (am I right?). So, I have to configure the DiscoveryListener to uses the second dongle, not the first. The problem is that I didn't see anywhere in the java program where to configure which dongle must be used with DiscoveryListener. Is the program who chooses the dongle or is the bluetooth library? Is it default or can I change the configuration ?
Thank you in advance !! I'm lost here ...
F�bio
Sorry about my bad English.

discovery listener is called in d program....so modify the code

Similar Messages

  • NEED HELP!! Nokia 3110 Classic with Bluetooth Head...

    Dear all experts,
    I just brought my Nokia 3110 Classic & found problem when trying to use my Motorola Bluetooth Headset H500. I've tried to use I-Tech Clip II Mini and Nokia Bluetooth Headset HS-26W yet still facing the same problem.
    The problem i'm facing is whenever i called out or received call, other parties can't hear clearly what i've said but i can hear them loud & clear. My friends who are brought Nokia 6300 & Nokia 3110 Classic, all are facing this problem!
    I've used Samsung, Sony Ericsson & Motorola phones before Nokia. So far, not problem. A bit disapointed and lost confidence with Nokia products.
    Is there any expects who can solve/advise/recommend/help on this problem?

    I had the same problem and found this thread while trying to resolve the problem. I have a Nokia 3110 and a Jabra Bt250v headset. I think I have found a solution.....I downloaded a software update (called firmware) from the nokia website (had to back up phone using Nokia PC suite and then follow the instructions on the nokia software updates) and now have version 7 rather than 5 and it seems to be resolved.

  • Help.  iMac won't start with Bluetooth keyboard

    Hi, iMac has decided to quit on me. It kept going to the grey screen of death at startup and triedd resetting everything. Nothing worked until I unplugged everything and noticed when I shut the Bluetooth keyboard off, only did it start up but much slower than normal. Any ideas or suggestions on whats going on? Basically, everytime I restart my computer, I need to make sure the keyboard is shut off and it still loads very very slow. Thank you.

    Hi, Warren
    try to reset PRAM.
    try to repair disk permissions.
    slow loading/running is sometimes connected with too little memory? how much do you have, and is it sufficient? (have a look at the Activity Monitor).
    please, post back with more details.
    thomas

  • Help me please, I'm new to java

    I created a application called PondVolume.java. I then ran the javac and it compiled correctly (I think) and I had a PondVolume.class file in my directory.
    When I go to execute the program
    java PondVolume 7 4 3
    I get an error "Can't find class PondVolume"
    can someone please help....
    Thanks in advance
    Craig Wiseman
    http://www.videoreaper.com

    Did you try to CD to the directory where PondVolume.class is located?
    I'll assume that PondVolume does NOT contain a package statement. When you enter "java PondVolume 7 4 3" the java.exe command look thru the directories that are in your system's Classpath for a file named PondVolume.class. The directory that contains that file must be in the system Classpath. Try this: CD to the directory that contains PondValue.class and enter "java -classpath . PondVolume 7 4 3"
    If that works, you should edit your autoexec.bat file and add .; to the Classpath setting.

  • Help me please, what's wrong with my program...

    My program has no problem writing data into file. But, I get garbages when my program retrieved data from file. How to solve this, anyone? I tried last 4 days still can't figure out. :(
    /* myDate.java */
    import java.util.*;
    public class myDate extends Object{
    private int year;
    private int month;
    private int day;
    public myDate(String newDate) {
    StringTokenizer st = new StringTokenizer(newDate, "/");
    try {
    this.day = Integer.parseInt(st.nextToken());
    this.month = Integer.parseInt(st.nextToken());
    this.year = Integer.parseInt(st.nextToken());
    }catch (NumberFormatException nfe) {
    System.out.println("Incorrect Date Format!!!");
    System.out.println(nfe.getMessage());
    public void setDay (int Day) { this.day = Day; }
    public void setMonth (int Month) { this.month = Month; }
    public void setYear (int Year) { this.year = Year; }
    public String toString() {
    return day + "/" + month + "/" + year;
    public int getDay() { return day; }
    public int getMonth() { return month; }
    public int getYear() { return year;  }
    /* Inventory.java
    * Book Name: 30 bytes Characters
    * Book ISBN: 10 bytes Characters
    * Book Author: 30 bytes Characters
    * Book Genre : 30 bytes Characters
    * Book Quantity : 4 bytes integer
    * Date of the book purchased : 10 bytes Characters.
    import java.io.*;
    class Inventory{
    private String bookName, bookISBN, bookAuthor, bookGenre;
    private int quantity;
    private myDate datePurchased;
    public Inventory() {
    this.bookName = "";
    this.bookISBN = "";
    this.bookAuthor = "";
    this.bookGenre = "";
    this.quantity = 0;
    this.datePurchased = new myDate("00/00/0000");
    public void setBookName(String bookname) {
    this.bookName = bookname;
    public void setISBN(String BookISBN) {
    this.bookISBN = BookISBN;
    public void setAuthor(String author) {
    this.bookAuthor = author;
    public void setGenre(String genre) {
    this.bookGenre = genre;
    public void setQuantity(int qty) {
    this.quantity = qty;
    public void setPurchaseDate(String dateOfPurchase) {
    this.datePurchased = new myDate(dateOfPurchase);
    public String getBookName() { return bookName;}
    public String getISBN() { return bookISBN;}
    public String getAuthor() { return bookAuthor;}
    public String getGenre() { return bookGenre;}
    public int getQuantity() { return quantity;}
    public String getPurchaseDate() { return datePurchased.toString();}
    public String toString() {
    return bookName + "\n" + bookISBN + "\n" + bookAuthor + "\n" +
    bookGenre + "\n" + quantity + "\n" + datePurchased.toString() +
    "\n";
    public String fillData(RandomAccessFile raf, int len) throws
    IOException {
    char data[] = new char[len];
    char temp;
    for(int i = 0; i < data.length; i++) {
    temp = raf.readChar();
    data[i] = temp;
    return new String(data).replace('\0', ' ');
    public void writeStr(RandomAccessFile file, String data, int len)
    throws IOException {
    StringBuffer buf = null;
    if(data != null)
    buf = new StringBuffer(data);
    else
    buf = new StringBuffer(len);
    buf.setLength(len);
    file.writeChars(buf.toString());
    public void writeRecord(RandomAccessFile rafile) throws
    IOException {
    writeStr(rafile, getBookName(), 30);
    writeStr(rafile, getISBN(), 10);
    writeStr(rafile, getAuthor(), 30);
    writeStr(rafile, getGenre(), 30);
    rafile.writeInt(getQuantity());
    writeStr(rafile, getPurchaseDate(), 10);
    public void readRecord(RandomAccessFile rafile) throws
    IOException {
    setBookName(fillData(rafile, 30));
    setISBN(fillData(rafile, 10));
    setAuthor(fillData(rafile, 30));
    setGenre(fillData(rafile, 30));
    setQuantity(rafile.readInt());
    setPurchaseDate(fillData(rafile, 10));
    public final static int size() {
    return 114;
    /* btnPanel.java */
    import javax.swing.*;
    import java.awt.*;
    class btnPanel extends JPanel {
    JButton btnSave, btnCancel;
    public btnPanel() {
    btnSave = new JButton("Save Changes");
    btnCancel = new JButton("Cancel");
    add(btnSave);
    add(btnCancel);
    /* inpPanel2.java */
    import javax.swing.*;
    import java.awt.*;
    class inpPanel2 extends JPanel{
    JTextField tfBookName, tfBookISBN, tfGenre, tfQuantity,
    tfAuthor, tfDatePurchased;
    JLabel lblBookName, lblBookISBN, lblAuthor, lblGenre,
    lblQuantity, lblDatePurchased;
    public inpPanel2() {
    tfBookName = new JTextField("",30);
    tfBookISBN = new JTextField("",10);
    tfGenre = new JTextField("",30);
    tfAuthor = new JTextField("",30);
    tfQuantity = new JTextField("",10);
    tfDatePurchased = new JTextField("",10);
    lblBookName = new JLabel("Book Name ");
    lblBookISBN = new JLabel("ISBN ");
    lblAuthor = new JLabel("Author ");
    lblGenre = new JLabel("Genre ");
    lblQuantity = new JLabel("Quantity ");
    lblDatePurchased = new JLabel("Date Purchased ");
    setLayout(new GridLayout(6,2));
    add(lblBookName);
    add(tfBookName);
    add(lblBookISBN);
    add(tfBookISBN);
    add(lblAuthor);
    add(tfAuthor);
    add(lblGenre);
    add(tfGenre);
    add(lblQuantity);
    add(tfQuantity);
    add(lblDatePurchased);
    add(tfDatePurchased);
    /* InventoryAdd.java */
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.io.*;
    class InventoryAdd extends JFrame {
    btnPanel buttonPanel;
    inpPanel2 inputPanel;
    Inventory bookInventory;
    RandomAccessFile rafile;
    public InventoryAdd() {
    super("Book Inventory - Add");
    buttonPanel = new btnPanel();
    buttonPanel.btnSave.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent ae){
    openFile();
    bookInventory = new Inventory();
    bookInventory.setBookName(inputPanel.tfBookName.getText());
    bookInventory.setISBN(inputPanel.tfBookISBN.getText());
    bookInventory.setAuthor(inputPanel.tfAuthor.getText());
    bookInventory.setGenre(inputPanel.tfGenre.getText());
    bookInventory.setQuantity(
    Integer.parseInt(
    inputPanel.tfQuantity.getText()));
    bookInventory.setPurchaseDate(inputPanel.tfDatePurchased.getText());
    try {
    bookInventory.writeRecord(rafile);
    }catch(IOException ioe) {
    System.out.println("Cannot Write Record into file...");
    System.out.println(ioe.getMessage());
    clearInput();
    closeFile();
    System.out.println(bookInventory.toString());
    buttonPanel.btnCancel.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent ae){
    clearInput();
    inputPanel = new inpPanel2();
    Container c = getContentPane();
    c.setLayout(new BorderLayout());
    c.add(inputPanel, BorderLayout.CENTER);
    c.add(buttonPanel, BorderLayout.SOUTH);
    setSize(350, 190);
    setVisible(true);
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    public void clearInput() {
    inputPanel.tfBookName.setText("");
    inputPanel.tfBookISBN.setText("");
    inputPanel.tfAuthor.setText("");
    inputPanel.tfGenre.setText("");
    inputPanel.tfQuantity.setText("");
    inputPanel.tfDatePurchased.setText("");
    public void openFile() {
    try {
    rafile = new RandomAccessFile("BOOK_INV.DAT","rw");
    rafile.seek(rafile.length());
    }catch(IOException ioe) {
    System.out.println("Error, Cannot open File");
    public void closeFile() {
    try{
    rafile.close();
    }catch(IOException ioe) {
    System.out.println("Error, Cannot Close File");
    public static void main(String args[]) {
    new InventoryAdd();
    /* ReadInv.java */
    import java.io.*;
    class ReadInv {
    RandomAccessFile rafile;
    Inventory bookInv;
    public ReadInv() {
    bookInv = new Inventory();
    try {
    rafile = new RandomAccessFile("BOOK_INV.DAT","r");
    rafile.seek(0);
    for(int i=0; i < (rafile.length()/bookInv.size()); i++) {
    bookInv.readRecord(rafile);
    System.out.println(bookInv.toString());
    }catch(IOException ioe) {}
    public static void main(String args[]) {
    new ReadInv();

    it's hard to read. please use code tag.
    why don't u use object serialization by implements Serializable?
    import java.io.Serializable;
    public class Inventory implements Serializable {
        // u don't need to change ur code here
    }when saving & loading inventory, u can use ObjectOutputStream & ObjectInputStream.
    here is an example:
    Inventory i = new Inventory();
    // set your inventory here
    // save to file
    ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(
       "InventoryFile.dat")); // file name
    out.writeObject(i);
    // u can write many object to one single file.
    out.close();
    // load the file
    ObjectInputStream in = new ObjectInputStream(new FileInputStream(
       "InventoryFile.dat"));
    Inventory i = (Inventory) in.readObject();

  • HELP!!! moderated News with collabra server!

    hi all
    first of all sorry for my bad english!
    i installed the collabra news server succesfully. any groups and subjects areas works
    perfectly.
    ... but i don't understand how i can manage the moderated news. i created a moderated news group on my server. i posted a text form a client to this moderated news group.
    ... afterwards i've received a mail and the newsgroup is still empty. this is correct i think.
    BUT HOW CAN I ACCEPT THIS NEWS ENTRYS?
    i found only following sentenses in the netscape documenatation:
    The moderator will need to set the NS_NEWSCONF environment variable in the nsnews.conf file to the full pathname of the nsnews.conf file.
    When moderators receive a message for approval, they can save the message to a file, and edit the message to remove the moderator header information.
    To approve an article, the moderator runs the inews command on the article, as shown in the following example:
    inews -h -a [email protected] filename_article
    The -h option indicates that the file contains headers; the -a option indicates that the file is approved.
    what this means? i set the NS_NEWSCONF environment! i found a inews.exe file! but i can't
    open it (dos window close after a short command)! where can i found the news entrys?
    hopefully anyone has experience with moderated collabra news!
    thanks
    danny

    I have a whole lot of bad news for you. I apologize in advance.
    First, this is an iPlanet Application Server forum. Most people here are unlikely to know anything about Collabra or any other Netscape products. (Except NAS, of course.)
    My second piece of bad news is that Collabra has been discontinued for over two years. I'm surprised that you were even able to find a CD. Collabra is as dead as dead gets.
    I wasn't even able to find you a newsgroup or mailing list that deals with Collabra. I expect that very few people use Collabra these days.
    It sounds harsh, but my best advice is to get rid of Collabra immediately. You will not be able to get any support for it. Even finding someone knowledgable enough about it to answer a question is going to be extremely difficult. I don't even think you could obtain a license for it today, so there are might even be legal issues about trying to use the software.
    If you need an NNTP server, I'd suggest looking at the open source alternatives. If you are just looking for collaboration software, and NNTP isn't necessarily a requirement, I'd look at the web based collaboration products available on the market.
    David

  • Help me please--CORBA: Using IOR with Aurora Visibroker in Oracle Database

    My problem is about Oracle CORBA session oriented:
    I would like to store an IOR in an Oracle Database in order to use it
    when I need the object associated but,
    If I have the IOR of an object instantiated from a class placed in the
    Name Service Context of an Oracle Database, this IOR is valid out of
    its session if the session has finished (if this is not the case, can I have
    an infinity session)? In order to use this object
    must I always authenticate by user and password before or can I use
    the object directly after call stringtoIOR?
    I am using CORBA implementation (Aurora) of Oracle 8i.
    Thank you very much and excuse my English.

    Even If create table manually in the Oracle Database using varchar2 but still when i copy the data query mysql database it shows spaces in the value column.

  • CS5: How to design a text logo that will have different faces of people of different race on it? [was: Help Me Please!!!]

    I am trying to design a text logo that will have different faces of people of different race on it, please how can I develop the text such that the pictures of those faces will be on it?
    Does the picture have to be at the background? Which platform (Photos, Illustrator etc) do I have have to use?
    Someone please help me since I am new with Adobe packages and I use Adobe CS5

    @JJMack
    Thank you for your help
    Please this sound too technical for me
    Can you help me to break this down?
    I have not even design the text of the logo and do not understand what you have text.
    I know what a layer is but I have not yet txt out the Logo text
    As for this: "or layers these can be converted to shape layers and merged if  need be",...  which platform can I do this on please (Photoshop, Adobe Illustrator etc ?
    As for this: "You can then  edit the slape layers path and define a custom logo shape for the edited path",   I need to know the process, will try to see sample on youtube though
    As for this: "Then use the custom shape tool draw out any size logo path you want and use it as a vector mask on image layer".  I will try to get familiar with Vector first and please let me know alternative platform to do this on
    Thanks

  • When I submitted my iPhoto book to Apple, an error caused the  image file to be unreadable or unprintable,why can anyone help me please

    when I submitted my iPhoto book to Apple, an error caused the  image file to be unreadable or unprintable,why can anyone help me please:)
    what I did with my system was following:
    1. Update your software.
    2. Restart your computer.
    3. Make sure all applications are closed.
    4. Open iPhoto or Aperture.
    5. While all other applications are closed, preview your print product as a
    PDF.
    6. Resubmit your order. 
    and still my PDF ibook file looked like my photos were scratched across the photos. Please help:)
    Thank you
    CJ

    Yes me too!!
    I thought that I had done someting wrong.  The first time it was my first attempt so I did not preview the photobok (did not know this trick).  When I did the cover photos were completely ruined with lines and code.
    The second time I changed everything and even made a different sized book - thinking my photo files were too big.  I dutifully previewed before buying the book and everything was fine.  Then a few days later got the usual e-mail message from Apple. When I previewed the project again ALL of the photos were corrupted.
    What to do - I need to get the photobook to friends to celebrate their engagement!
    If I saved the pdf then submitted this would that work??
    Any thoughts - I am working on a large project and do not want to go any further if all the work will be ruined on buying the book.

  • Accidently i have removed the disk utility can anyone help me please

    i have accidently removed the disk utility.... can anyone help me please..

    The problem with junk utilities such as MacKeeper is that they are capable of causing damage that is impossible to inflict on a Mac using normal means.
    MacKeeper is not the only such utility; it is merely the most visible due to its aggressive and highly successful marketing tactics.
    Get rid of MacKeeper by following these instructions exactly as written:
    If you used MacKeeper to encrypt any files or folders, use MacKeeper to un-encrypt them.
    Quit the MacKeeper app if it is running.
    Open your Applications folder: Using the Finder's Go menu, select Applications.
    Drag the MacKeeper icon from your Applications folder (not the Dock) to the Trash.
    You will be asked to authenticate (twice):
    You do not need to provide a reason for uninstalling it:
    Click the Uninstall MacKeeper button. You will be asked to authenticate again.
    After it uninstalls you may empty the Trash. All that will remain is an inert log file that does nothing but occupy space on your hard disk.
    Next: Test your Mac for operation. If it is still exhibiting problems, you may need to undo damage that occurred as a result of using MacKeeper. At the extreme this could include erasing your Mac and rebuilding your system from the ground up, but start by downloading and installing the OS X Combo Update I linked earlier. That may be all that is necessary to restore OS X to normal, but other programs you installed may need to be installed again.

  • I am new with iMac and I am trying to copy some file from my external HDD but it does not let me also I can't delete anything from this HDD using the finder. Can somebody help me , please?

    I am new with iMac and I am trying to copy some file from my external HDD that a used with my PC but it does not let me also I can't delete anything from this HDD using the finder. Can somebody help me , please?

    No, unfortunately, when you format a drive, it will erase all the contents. So you will need to find a temporary "storage" place to put the stuff using a PC so you have access to it. Then reformat using Disk Utility (Applications > Utilities). If only using with mac, format Mac OS Extended (Journaled) and use GUID Partition scheme under Partitions/Options. After formatting, you can drag the files back.

  • Hello.Can anyone help me with my mac? I typed a note on my mac.When i finished it, i click new note button.Then my note is lost.Help me, please!

    ello.Can anyone help me with my mac? I typed a note on my mac.When i finished it, i click new note button.Then my note is lost.Help me, please!

    Does your note pad look like this?
    The left column shows a list of all my notes. Do you have something else?

  • I moved to new house where I have wifi base station I made extension via TP-link power line adapter and connect my Airport utility 6.3.2, but I don't now how to set up as a second network with one IP address?Could you help me please?

    I moved to new house where I have wifi base station I made extension via TP-link power line adapter and connect my Airport utility 6.3.2, but I don't now how to set up as a second network with one IP address?Could you help me please?

    Urvergessen wrote:
    +You may have already done this, but do you have the first AirPort Express configured to "Allow this network to be extended"?+
    Could not find that setting anywhere.
    It's in AirPort Utility, AirPort panel, Wireless tab.
    When I'm within the range of the base station I connect normally, but further away the connection drops despite the fact that the other Airport is very close and light is green. Interestingly, my PB Pro has signal almost everywhere in the house, but my iPhone and Mac Mini don't. Most likely just a hardware difference?
    In AirPort Utility with the second Express, in the AirPort panel, Wireless tab, have you checked "Allow wireless clients"?
    The second AP does show an IP address: 10.0.1.3.
    With a "Configure IPv4" setting of "Using DHCP", that suggests that the second Express really is connecting to the first Express. In that case I have no other explanation of your your problem.

  • I am new with JAR files please help me

    Hi Dear All,
    I am new with JAR files, I know concept, but dont know how to careate JAR, and how do i use it?
    Please help me.
    Thanks

    This tutorial covers that:
    http://java.sun.com/docs/books/tutorial/deployment/jar/index.html

  • Hello! Help me please, I have a problem with the program occurred after the upgrade to version 3. 6. 16, namely by pressing the button 'Open a new tab' nothing happens. ?

    Hello! Help me please, I have a problem with the program occurred after the upgrade to version 3. 6. 16, namely by pressing the button 'Open a new tab' nothing happens. ?

    This issue can be caused by the Ask<i></i>.com toolbar (Tools > Add-ons > Extensions)
    See:
    * [[Troubleshooting extensions and themes]]

Maybe you are looking for

  • Sony IDE DVD Drive not being recognized

    Motherboard : P7n-SLI-FI                     MS-7380 I recently upgraded my computer a bit with this new motherboard, ram, video cards, power supply. I used my older dvd drive that was working in my last computer. It is currently connected via IDE ri

  • Back button does not go to the previous page

    Hi all, first post. As an imac user I also have a laptop running Win7 O/S and of course Safari 5.1 (7534.50). I go to the tabbed browsing bar, click on a bookmark and open all in tabs. The problem occurs when I use the back button to go to the previo

  • Module 'net_rim_b​b_qm_platf​orm' not found on Bold 9900

    I purchased a backgammon game from App World and after playing it just once I now get the following message when I try to open the game "Error starting backgammon: Module 'net_rim_bb_qm_platform' not found". I contacted the game developer who told me

  • Capacity- shifts

    Hi, i defined in op4a, 3 shifts and grouped under grouping key xx which is mentioned in capacity heade screen of wcenter. when i go to interval and shifts tab, it shows only 8 hrs capacity. i want here to appear all 3 shifts as defined in op4a. how t

  • The enhanced picture uploaded for ebay is not visible in Firefox but is in IE

    I sell on ebay and like using the enhanced picture uploader. I still able to use this uploader on IE but Firefox does not even allow ebay to show it as an option. I am very new to Firefox so I am certain it is a setting I need to change. Any and all