Choose a printer as the Bluetooth device to connect to

Hey guys,.

I use the following code (with success) to start sending data to a printer:

      BluetoothSerialPortInfo[] bluetoothSerialPortInfo = BluetoothSerialPort.getSerialPortInfo();
        StreamConnection streamConnection = (StreamConnection)Connector.open(bluetoothSerialPortInfo[0].toString(), Connector.READ_WRITE);
        DataOutputStream o = streamConnection.openDataOutputStream();

However, the above code only takes the first Bluetooth device and connects to that. Is it possible to get some info on who's on the other end?

(a) is a printer or another type of device?

(b) if it is a printer, what model?

See you soon,.

Pav

... and here is the solution!

Iterate bluetoothSerialPortInfo [] checking:

bluetoothSerialPortInfo [i] .getDeviceName)

It should have the printer brand and model :-)

Tags: BlackBerry Developers

Similar Questions

  • Where can I find the bluetooth device on control panel of Windows XP?

    I have a wireless printer not communicating with computer.  The directions said to go to the control panel and click on the bluetooth device, but I do not see a device on the control panel. Where can I find the bluetooth device?

    One of reasons behind the first two questions of Vinod, is that not all computers have a Bluetooth built-in support.  Most modern laptops don't, but many computers to office, including the new ones, are not.

    Do you know if your computer has Bluetooth support? If you don't know, what is the brand and model of your computer?

    If you have a laptop computer, is turned on Bluetooth?  Many laptops have a (often Fn + F5) switch that turns radios (Bluetooth or wifi) on and outside.  Check with your computer user Guide.

    Please answer 4th issue of Vinod as well (brand & model printer).

  • Example: Pavilion dn3-1111ax: my bluetooth divce not conneting ask the bluetooth device and not install the driver

    How to slove above problem seen in matter

    And what is the Bluetooth device software

  • The Bluetooth device in the iMac screen must be certified for IFM establishes a connection with the iPhone?

    I'm trying to establish a connection between my iPhone and my iMac. The Bluetooth device in the iMac screen must be certified for IFM establishes a connection with the iPhone?

    This connectivity is not supported (except to attach them). What you trying to do?

    Barry

  • HP 15 ac189tu not find the bluetooth device please help me

    HP 15 ac189tu not find the bluetooth device please help me

    PLEASE HELP ME

    Mr President

    I found the solution

    I have install MS 72552.exe

    & his departure find device

    Thanks for supporting.

  • How do I configure the bluetooth device

    Original title: pls help bluetooth & windows XP

    so brought of speakers of wi - fi creative d80 to my pc. I tried to activate bluetooth in downloading drivers. is it true that you can not bluetooth windows xp?

    Hello

    Thanks for posting in Microsoft Community

    I appreciate that you try to configure the Bluetooth device in Windows XP.

    I will definitely help you with this.

    Please follow the steps in the link.

    How to install and configure Bluetooth devices in Windows XP Service Pack 2

    http://support.Microsoft.com/kb/883259?WA=wsignin1.0

  • What is the Bluetooth device in the HP Touch Smart TX2-1275 DX?

    Friends, I want to know what is the Bluetooth device in the HP Touch Smart TX2-1275 DX? IM asking the number of brand and model of the manufacturer such as Ralink xxx, xxx Broadcom and so on for this laptop not the Software Support for HP Integrated Module with Bluetooth Wireless Technology for Microsoft Windows Vista driver. If anyone knows, can you please give me the link to download? My friend he reformatted without taking note of its original name of device in Device Manager. I appreciate your help friends, thanks to you.

    This widget could not be displayed.
  • Hi__I have acer extansa laptop 5635. I installed Windows 7 in there. I am facing problem on bluetooth device drivers. How do I get the bluetooth device driver.

    every time I help out to fix this problem, it search for it and then he said: this bluetooth device driver is not installed. Install the last jerking for the device.

    After that, I click option

    apply this hotfix

    then he begins to search for, but after a few seconds it gives an error that

    device not found driver.

    Please help me solve this problem. I will be thankful to you.

    Hi Fadi,

    If Windows is unable to install the drivers automatically, then you will need to visit the Bluetooth device manufacturer site download and install the drivers manually.

    Updated a hardware driver that is not working properly

    http://Windows.Microsoft.com/en-us/Windows-Vista/update-a-driver-for-hardware-that-isn ' t-work correctly

    Looking for drivers

    http://Windows.Microsoft.com/en-us/Windows-Vista/finding-drivers-what-to-do-when-your-hardware-wont-work-with-Windows-Vista

    Set up a Bluetooth compatible device

    http://Windows.Microsoft.com/en-us/Windows-Vista/set-up-a-Bluetooth-enabled-device

    I hope this helps!

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Problem with the Bluetooth device

    I have problem with my bluetooth device... before this my phone normally can send bluetooth to my handphone... but now its can not send and the screen display the warning "Bluetooth device not found. Please make sure that your bluetooth device is connected correctly and switch"... I don't know what the problem is... you can tell me what I need to do?

    my laptop is HP G42 Notebook Pc... Windows 7 64 bit operating system...

    Please help me... Thank you a lot =)

    Click on the link below:

    Introduction to Bluetooth wireless technology

  • How to get the name of the bluetooth device and the name of the bluetooth device address device class?

    Hi all

    Can I know how to get the bluetooth device name and the name of the bluetooth device address device class?

    Example:-if my bluetooth device address is :-98:EB:CD:01:1F::90 then how do I get my bluetooth device name?

    I hope you understand my problem. Let me know as soon as possible.

    :

    Thanks for the reply.

  • Installed atheros bluetooth suite but my pc can't find the bluetooth devices.

    Original title: bluetooth questions

    I recently installed atheros bluetooth suite but my pc cannot find the bluetooth device, even if it is already installed internally. I use a computer laptop asus x750v and my bluetooth worked fine before. How should I do?

    Hello

    What is the number of full model of your ASUS laptop?

    We will try these steps and check if this solves the problem.

    Method 1: If your computer is having problems with a recently installed device or other hardware, try to use the hardware and peripheral troubleshooting tool to solve the problem. It checks the common issues of interest and ensures that a new device or hardware connected to your computer has been installed correctly.

    Open the hardware and devices Troubleshooter

    http://Windows.Microsoft.com/en-us/Windows7/open-the-hardware-and-devices-Troubleshooter

    Method 2: Download the patch from this link and check.

    Bluetooth devices do not work correctly on a computer that is running Windows 7

    http://support.Microsoft.com/kb/980396

    In addition, visit the following links for reference:

    Error: "device driver Bluetooth not found" when you try to connect to a bluetooth device

    http://support.Microsoft.com/kb/2654568

    Add a Bluetooth device to your computer

    http://Windows.Microsoft.com/en-us/Windows7/add-a-Bluetooth-enabled-device-to-your-computer

    If you have additional questions, or if this problem persists, come in and we will be happy to help you.

  • Does not delete the Bluetooth device

    Hey. I connected my phone (and orange San Francisco) to my laptop, which is a Samsung (not sure of the exact model) via bluetooth. When they are connected, I accidentally turned on flight mode, which caused something weird occurs; my devices window says that there is an error in driver with my phone, so I tried to remove it, so I could re - pair it with my laptop, but it won't disappear. He said 'delete device' for over 12 hours now, and I don't know what to do.

    Hey James,.

    You can uninstall the driver manually from the Device Manager.

    Method 1:

    Follow the steps and check.

    a. press the Windows key + X.

    b. click on Device Manager.

    c. click view.

    d. click the hidden devices.

    e. look for the Bluetooth device.

    f. right click on the Bluetooth device , and then click Uninstall.

    Method 2:

    You can also follow the steps to open devices ghosts in Device Manager.

    a. press Windows + break logo | break and open system properties.

    b.

    b. in the System Properties dialog box, click the Environment Variables button. This will open another dialog box.

    c. click on Advanced system settings in the left panel. This will open the System Properties dialog box.
    d. now under variables user for box, click New.
    e. enter devmgr_show_nonpresent_device in the name of the Variable field. Type 1 in the value of the Variable field.
    f. When you open Device Manager (type devmgmt.msc in the Start Search box and press ENTER) and select view > show hidden devices, all ghost devices will be displayed with their missing icons.

    Now, check the Device Manager and uninstall the device.

    Hope this information helps.

  • Problems with the Bluetooth device on pc Windows 8.

    Original title - microsoft

    When my sister buy a laptop, she was already a Bluetooth device and has been able to use. but last July 2015 I can't turn on my Bluetooth on my PC device, I checked services.msc and discovered he was not running so I was started to run, but still I can't activate it. What should I do?

    Hello

    Thanks for posting your question in the Microsoft Community.

    I understand that you are facing problems with the Bluetooth device on your pc. I will try to help you with this question.

    Please answer these questions to get more clarity on this issue:

    • What is the brand and model of the pc?

    • Have you installed all the updates waiting and also updated all the device drivers on the pc?

    • What is the error message you get when you use the Bluetooth device?

    • The problem is specific to this device?

    Suggest that you refer to all the steps in this article to check if that helps.

    Why isn't Windows find my Bluetooth or other wireless device? : http://windows.microsoft.com/en-US/windows-8/why-isn ' t-windows-conclusion-device

    Keep us in the loop to help you further.

  • Cannot delete the bluetooth device in Windows 8 RTM (running on MacBook Pro)

    My office uses Macs but allows employees to use BootCamp to run both environments. I was able to add a pair of headphones bluetooth without problem, but now can't remove them in order to re-pair.

    The event viewer shows:
    Withdrawal of the device node 'BTHENUM\Dev_001816064C73\a & 383f14a7 & 0 & BluetoothDevice_001816064C73' failed with error code 0 x 80070490.

    I've never seen that happen before, and can only find references error code 0 x 80070490 Windows Update problems.

    Ran sfc/scannow, but came back clean. Any ideas/suggestions?

    The same thing happened to me when I tried to remove a bluetooth mouse, so that I can add another.

    I tried the above solution presented by Angela T., as he made a lot of sense, but which still has not worked for me and the old mouse maintained reappear.

    The problem I encountered was that I was using the Bluetooth devices icon in the box 'Notifications' from the background toolbar on the desktop (i.e. the lower right part of the screen where things like time, volume, etc., are displayed).
    For some reason, try to remove the mouse open bluetooth devices window through this icon is mess up every time.

    I managed to make it work in the pop-up toolbar that appears when you place your cursor in the lower right of your screen and clicking on 'settings' (the icon that looks like a gear) and then by clicking on "change pc settings" at the bottom.  This brought me to the 'Pc settings' window where I could add and remove devices.  Now when I tried to delete the old mouse and add the new to here, it worked perfectly fine.

    Crazy, I know, but it fixed the problem for me.

  • The progress of the installation is blocked on 'the new device is connected now' bar is just reload!

    The progress of the installation is blocked on 'the new device is connected now' bar is just reload! HP laserjet M1132 MFP

    Welcome @HELPMEPLSHSLOL,

    Thank you for your participation in the forums! I see that you are getting the error "new device is now connected" when you try to install the printer software. I'd love to help you.

    If you are using Windows and you're using a USB connection, try the steps in this document: HP Laserjet products - "Device setup has not completed" or the "Unknown device" Message appears in Windows during Installation of USB. If the printer will not be updated of the Manager of devices in the two Solution, make a right click and uninstall the print device. It may be listed as unknown device, USB or Laserjet M1132 print media. Disconnect, then reconnect the USB cable to see if it will continue the installation. If it is not that whatever it is listed for your printer, try another USB port directly on the computer or another USB cable.

    What operating system do you use? How to find the Windows Edition and the Version on your computer.

    How is the printer connected?

    Feel free to click on the 'accept as Solution' and the 'Thumbs Up' If this helped. Please let me know the results. Best regards

Maybe you are looking for