Bluetooth Serial Port issues

Hello world

Two questions:

  1. I'm accepting an incoming connection from the client BTSPP on my server BTSPP (ConnectionNotifier.acceptAndOpen ()) and then by calling RemoteDevice.getRemoteDevice (.) on the connection that results.  Curiously, although it is supposed to be a BTSPP link, I get IllegalArgumentException as a result of this call.  Clues?  The stack trace includes a code: 0xA030 after the other info.
  2. My Vista box creates two serial for this BTSPP one connection ports.  One is outgoing and one is inbound.  I use one out to talk to the BB from the PC.  Is it possible to turn to the right and use the one entering the BB to talk to the computer?  If so, is there a standard way to do it?

Thank you

Jimmy

Your first point is a known problem when using a StreamConnection from a StreamConnectionNotifier on a connection to the server.  This has been resolved in the version of BlackBerry device software 4.6.0.96 and higher.

The second point is possible.  There are several ways to do so.  You can use the Connector.open method to open a connection from the BlackBerry to your PC.  Please take a look at the class JavaDocs connector for more information.

Tags: BlackBerry Developers

Similar Questions

  • Wire bachground for Bluetooth Serial Port Communication

    Hello

    I want to make a request which should be as a background thread to run after that BB has been activated.

    I tried something:

    1. I used BluetoothSerialPortListener and as a normal application. After I chose the menuitem, it begins to listen to the bluetooth serial port. When the data are arrived through the port, it extracts the data and write a response to the sender. Then he out the value and display it on the screen, where I used an object of class screen. But, after posting a value, it cannot display the value came second. I tried, what the old screen pop fist, then puschup the new screen. But it does not work. How can do it, when the new value, they can be diaplayed on the screen?

    2. then I did the BluetoothSerialPortListener in thread and used the autostart flag such as:

    Public Shared Sub main (String [] args)
    {
    If (args! = null & args.length > 0)
    {
    if(args[0].) Equals ("autostartup"))
    {
    Starting the device we want to start the thread SycareBluetoothPortListener
                 
    sycare_synergy ss = new sycare_synergy();
    }
    }

    This time around the Listner should take only data is arrived and then sends a response to the sender. But after downloading, BB has always shown that he was unable to generate a new object of the thread class and the thread could not be started.

    Someone tell me, how can I fix it and make it possible, that after each new start of the BB, the bluetooth serial port can always in the background arrivals data receive and display automated according the data arrived?

    Thank you in advanced and Merry chiristmas!

    Monternet

    1. update the user interface.

    It is possible that you are trying to do.  In fact, you don't need to replace the screen, you should be able to simply update a field on the current display of data.  As an example of a background thread to update the user interface, please see the code of httpdemo.

    2. Thread context

    When you say things like:

    "that he could not generate a new object of the thread class.

    It would be much better if you can cite exactly what makes the Blackberry.  In this case, I assume that it has generated an Exception, so the Exception and the associated detailed message that Exception must be included when you report a problem like this.

    In any case, it is possible to implement a background task in the way you need.  Search the Knowlegebase for articles that talk about background Applications and display updates to the user interface of the task in the background and auto-start applications.  There are a few pieces of confusion to this process, so there are a few to get your head around, but I think that everything is in the articles.

  • Bluetooth Serial Port (SPP) on the XOOM profile

    Does anyone has experiences using devices to profile serial port with the XOOM?

    We try to get our through SPP Bluetooth barcode scanner and we had a few problems with the matching.

    We are able to pair our device with the XOOM did very well (using Bluetooth 2.1 Secure Simple pairing (SPP)), however, when we try to open a serial port (RFComm channel), the XOOM is trying to make an increased level of security and enforce Bluetooth man in the middle (MITM) protection.  The problem is that our device does not have ANY screen or buttons that would allow a user to enter the PIN code!

    Anyone tried the "non - ui" SPP BT 2.1 devices with the XOOM?  Such as barcode scanners or GPS units?

    We "got around" this by having our 'claim' device, the pin code has been entered correctly, but this is really just a hack.

    Thanks for any comments.

    Len

    We have solved this problem by using a new call API 2.3 and higher to specifically ask for a link "unauthenticated."

    Socket CHS Series software now fully supports Android 2.3 and features honeycomb (3.x).

    Kind regards

    Len Ott

    Socket Mobile

  • Porting to ARM LM3S811, PWM and serial port issues

    Read my previous post: http://forums.ni.com/ni/board/message?board.id=420&thread.id=1996

    I have problems again, I
    corrupted data sent through port sΘrie 0 when you use the OR
    pilot series on the LM3S811. I also get code error-1073807339 when reading that
    data inside labview with VISA, sent my arm to my PC.

    I have
    think the timings may be wrong, but I put t know
    where to look for baud rate divisor for
    UART0. S 3, 811 is Xtal 6 Mhz, 8 Mhz not like the 3S 8962.

    I have
    also tested the PWM on the frequency and scope dosen t match if I ask
    for 1 kHz, I'm moving 666 Hz. Seems like affecting the Xtal 6 Mhz in
    uVision is not enough.

    THX

    Lukasz

    OK, here's the solution.

    Open 'startup.s '.

    Goto line 193:

    ; set the system clock to run at 50 MHz
    ; SysCtlClockSet(SYSCTL_SYSDIV_4 |) SYSCTL_USE_PLL |
    ;                SYSCTL_XTAL_8MHZ | SYSCTL_OSC_MAIN);

    LDR R0 = 0X01C002C0
    BL SysCtlClockSet

    B __main

    Replace R0, with the right values in "sysctl.h" line 236:

    in my case the value of the 6 Mhz Crystal which is "0x000002C0".

    Calendar of PWM is restored and serial port works fine now.

  • Close the Bluetooth Serial Port

    If anyone can offer advice regarding some serial Bluetooth using VISA ports near the fence.

    I establish a session series Bluetooth using the Bluetooth Radio software, then move to LabVIEW to control my device via Bluetooth - no problem.

    When I want to stop the connection, I use the command close the visa. When you use the WIDCOMM drivers, the Bluetooth connection is cut using this application.

    However, when I use a device that works the Bluesoleil drivers, the port is left open after the execution of the order closing the visa (and the command does not return an error).

    Everyone knows this?

    Thank you

    SSK

    Hi Ssk,

    I have looked into this for you and have been unable to find a prior occurrence of this behavior, many people have used this driver with LabVIEW without this problem.

    If all goes well a little more information can narrow down the cause.

    Can I ask:

    You use what version of LabVIEW.

    Have you tried several devices that use the Bluesoleil driver?  The behavior is repeatable with each of them?

    Have which devices you tested?

    What driver version are you using?  Have you tried to improve this?

    Thank you

    John

  • Problem reading data via the Bluetooth Serial Port

    My request is meant to connect with a PC via Bluetooth.

    The PC runs a simple server that reads a string from the BlackBerry UTF and writes a UTF string in response.

    DataInputStream istream = connection.openDataInputStream();DataOutputStream ostream = connection.openDataOutputStream();
    
    System.out.print(istream.readUTF());
    
    ostream.writeUTF("Hello client");ostream.flush();
    
    ostream.close();istream.close();
    

    The sound written BlackBerry pin and reads the answer.

    DataInputStream istream = connection.openDataInputStream();        DataOutputStream ostream = connection.openDataOutputStream();ostream.writeUTF(Integer.toString(DeviceInfo.getDeviceId(), 16));ostream.flush();
    
    _rtf.insert(istream.readUTF());
    
    ostream.close();istream.close();
    

    The server reads and prints the PIN successfully, but the client raise EOFException at readUTF().

    What could be wrong?

    Solved. The server side must not empty its output stream.

  • Serial port profile Bluetooth help with saw-drill bit

    Hello

    Looking for example code using Bluetooth serial port profile using the basic version of the NDK. I can't find anything I find only using the waterfall.

    I need to set up a server, or a master of the blackberry device. Could you help me please. I read through the API, but I do not understand the implementation of the code needed for the realization of a simple connection of serial port Bluetooth mode master (server) profile.

    Thank you

    See soluton here

    https://supportforums.BlackBerry.com/T5/native-development/how-to-modiy-the-Makefile-to-link-the-so-...

  • can't access serial port make sure you have the proper authorization

    Separated from this thread.

    IH im nithin my laptop does not take my dongel mts it is showing error massage as it is impossible to access the serial port, make sure that you have proper authorization can solve this problem

    Hello

    Sorry for the late reply.  You receive a message "access denied"?

    Try the steps listed by Srinivas KR

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-hardware/access-denied-Openning-Bluetooth-serial-port/3127e92e-57dB-4d27-A017-16a90a43e8c7

  • The creation of a virtual serial Port for Windows 7 hot Synch an old Palm Treo 700 p with Palm Desktop by Bluetooth

    I am trying to synch (HotSync) an old Palm Treo 700 p with Windows 7 by Bluetooth and the Palm Treo 700 p tells me that I need to create a virtual serial port on the Bluetooth on my PC to synchronize.  I can't understand how to create this port in Windows 7.   Can someone help me?

    Try this link to TechNet for this solution.

    https://social.technet.Microsoft.com/search/en-us?query=Windows%207%20create%20A%20Virtual%20Serial%20Port&AC=5

  • III - issue of serial port Advanced Port Replicator.

    Hi, I have a few apps that do not work with usb to serial adapters. I need to know if the serial port on an advanced port replicator will not work unless the serial port was "integrated" to the computer, as they used to be in older laptops.

    Are the drivers required to make ports to work within windows?

    I have a Tecra M2.

    According to the specification for Tecra M2 Toshiba PA3314E - 1PRP Port Replicator III Advanced is certainly compatible and I guess it should work. Unfortunately, my printer has USB port and I can't test it.

  • HP Compaq 6000 Pro AT492AV: Serial Port PCI Driver help - HP 6000 AT492AV Windows XP Pro

    Due to former software compatibility issues, I run Win XP on my computer HP Compaq 6000 Pro AT492AV.  I installed a new copy of XP OEM and have solved all driver except for 2 problems:

    (1) PCI Serial Port, here's the info from Device Manager:

    PCI serial port

    PCI bus 0, device 3, function 3

    PCI\VEN_8086 & DEV_2E17 & SUBSYS_3048103C & REV_03
    PCI\VEN_8086 & DEV_2E17 & SUBSYS_3048103C
    PCI\VEN_8086 & DEV_2E17 & CC_070002
    PCI\VEN_8086 & DEV_2E17 & CC_0700

    (2) unknown Device, here's the info from Device Manager:

    Controller of Interface LPC Intel(r) ICH10D - 3A1A

    ACPI\IFX0102
    * IFX0102

    I'd appreciate any help you can provide!

    All the best

    Hello:

    You need these drivers for devices...

    1.

    This package contains the Intel Local Management Service (LMS) and the support of Serial - over - LAN (SOL) for Intel Active Management Technology (AMT) for the supported desktop models and operating systems. This software is part of the Intel Digital Office Initiative.

    FTP://ftp.HP.com/pub/SoftPaq/sp45001-45500/sp45367.exe

    2.

    This package provides the device driver for the Infineon Trusted Platform
    Module (TPM 1.2) in office supported running models taken Microsoft support
    Windows XP operating system.

    FTP://ftp.HP.com/pub/SoftPaq/sp40501-41000/sp40553.exe

  • Tecra M11 - 17V - identify the serial port on the docking station

    I have a laptop Toshiba Tecra M11 - 17V, which I often use with the docking station that accompanies it.
    There is a DB9 serial port at the back of the docking station, but I don't know what COM Port.

    I use Windows 7.

    In the device, COM9 Manager - COM22 are identified as Port BT (bluetooth). Com7 - COM8 are RIM Virtual Serial Port v2, COM17 is Prolific USB-to-Serial Comm Port and COM18 is USB-Serial CH340.

    I thought that COM17 or COM18 were the most likely candidates, but have not been able to get to answer using one of them.

    I connect a Psion 5 (Comms app) to him and have developed ports and the Psion 8bits, 19200 baud, no parity, 1 stop bit.

    Hello

    > There is a serial port DB9 on the back of the docking station, but I don't know what COM Port, it is

    I think you have misunderstood something wrong
    COM ports in Device Manager are virtual com ports
    There is no link between a serial port and a virtual com port.

    I have a question: what docking station you have exactly?

    I had an express port replicator and this device required an additional serial port driver installation.

  • virtual serial port? Vista 64-bit, usb, palm 755 p verizon dongle

    I have a new Vista 64 bit operating system and I'm having problems that everyone else is still.  Can't hotsync using the cable.  I bought the dongle bluetooth (Kensington) that many have said works.  My phone recognizes the PC.  My instructions on the phone that warm using bluetooth synchronization tells me to set up a virtual serial port.  The instructions are not very clear.  This is where it falls apart for me.  Can someone explain how to configure this virtual serial port?  Thank you.

    Well, I'm pleased to announce a successful solution.  On the recommendation of some other son that I left and piece and ioGear GBU321 Bluetooth USB key and Setup was a snap and it works (although SLOOOWLY compared to a connection cable, a while and plug your treo during your first sync).

    To setup you do the following (and this can also work for your Kensington):

    • Insert the driver CD
    • Insert the dongle when asked.
    • Install the drivers
    • Pair your device.  Basically, go to the configuration Bluetooth on the Palm screen and select "Trusted Devices".  You will find the bluetooth adapter, select it, and then the Palm or PC will provide or ask a pairing code.  The instructions will guide you through, but basically, you'll want to make sure that the same numbers are registered on both screens (this prevents you from accidentally pairing with some random near the computer)
    • This will actually set up your virtual port for you.
    • You can go to the hotsync Manager and click on "serial" and select the port created in the pairing process.
    • If you don't know which port has been created "Control Panels" and select "Phone and Modem" (assuming that you are in "Classic view").
    • Click on the modem tag and you will see something like 'Standard Modem over Bluetooth link' and next to that it will be the assigned port.

    I hope this helps.  I know that I was relieved not to have to trash my Palm or my PC (although when the Pre or iPhone with a physical keyboard comes out all bets are open)


    Message is about: Treo 755 p (Verizon)

  • DC-7800: serial port pci drivers

    When I checked my device manager I saw a yellow icon for what follows in the OTHER DEVICES PCI simple Communicatiosn controller... Serial port PCI... and my own USB 3.0 card Bluetooth device... I can't find drivers for the latter.

    I'm a bad day and just can't see the answer... Any help would be appreciated.

    Hello:

    You need these pilots for the port of simple Communications controller & PCI series PCI.

    http://h20565.www2.HP.com/hpsc/SWD/public/detail?sp4ts.Oid=3459248 & swItemId = vc_78668_2 & swEnvOid = 4059

    http://h20565.www2.HP.com/hpsc/SWD/public/detail?sp4ts.Oid=3459248 & swItemId = vc_78665_2 & swEnvOid = 4059

    What model bluetooth adapter do you have?

    You will probably need to get the driver from the manufacturer's Web site.

  • Satellite 2250XCDS does not recognize compressed serial port

    I have a 12 x 12 connected to the serial port (COM1) Tablet and it does not detect or recognize this tablet.

    The Tablet is plugged. The Tablet light is on. The light changes from red to green when I run the stylus above isn't the tablet that is at issue here.

    Please notify.

    Hello

    I assume you are using a graphics tablet (Pad). Is there a driver that must be installed before you can use it properly?

Maybe you are looking for