Various Bluetooth Clients Actives

Hi!
I'm trying develop a Client-Server aplication with bluetooth communication. I need 2 clients connecteds with the server (PC). The question is: My Server stands I client conection in time. How can I connect 2 clients to my server at the same time?
I'm trying RFCOMM protocol. On JSR-82 documentation says:
"The SPP service can accept multiple connections from different clients by calling acceptAndOpen()". I've tried but I got a BluetoothConnectionException: timeout. In fact I nly can conect my second client when first disconnect.
Follows a part of application source code:
boolean listening = true;
boolean firstTime = true;
String cmd = "";
while (true) {
System.err.println("Listening...");
try {
if (listening) {
System.err.println("Waiting incomming conexion 1...");
conn1 = (StreamConnection) server.acceptAndOpen();
/*--------- Client Connected waiting for incoming data --*/
din1 = new DataInputStream(conn.openInputStream());
dout1 = new DataOutputStream(conn.openOutputStream());
System.err.println("First client connected...");
System.err.println("Waiting incomming conexion 2...");
conn2 = (StreamConnection) server.acceptAndOpen();
din2 = new DataInputStream(conn2.openInputStream());
dout2 = new DataOutputStream(conn2.openOutputStream());
System.err.println("Second client connected...");
My server runs on windows XP and my bluetooth driver is bluesoleil 2.3. My dongle-USB is a multilaser AV00018ML.
If anyone have a example with more than one client conection active in time please send me.
Help!!!!
Hugs,
Leydson

Guess that the best way to do this is with wifi then..

Similar Messages

  • Speed up client activity status in SCCM console

    Hi
    Is it possible to speed up showing Client Activity on  machines under Devices in SCCM console? Currently even when i launch manually on client side to Hardware Inventory Cycle or Software i need to wait hours or even days until this info will show in
    SCCM console.
    I'm talking about this data:

    Hi,
    This thread might help you.
    SCCM sql query Client status if active or not
    http://social.technet.microsoft.com/Forums/en-US/5e0cfddc-7328-49b2-ada2-ea4a6d5a33bc/sccm-sql-query-client-status-if-active-or-not?forum=configmanagergeneral
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Can iOS automatically pair with various bluetooth devices (computers...) to stream audio?

    We are trying to develop an application capable of streaming audio thru bluetooth from a computer to an iOS device. If we were to use various bluetooth computers to transmit this audio, do we have to manually pair the devices or is there a way for iOS to automatically pair to these computers?
    We know that streaming audio to ios devices is possible. There are various applications like Eavesdrop that permit this audio streaming.
    We would be very grateful if anybody could help us!

    Guess that the best way to do this is with wifi then..

  • Internet based client activity

    I am setting up clients for internet based client management.  We were already have PKI certs for all of our clients.  The client shows the connection type as currently internet, but the client activity shows inactive in the console.  Where
    would I start to trouble shoot this?

    The client indeed needs to have the information the Internet-based Management Point information. Normally the client should get that information as a policy when it's correctly communicating with a Management Point, or as a property during the client installation.
    Also, indirect it's at least one of the things that counts with the InternetEnabled property.
    My Blog: http://www.petervanderwoude.nl/
    Follow me on twitter: pvanderwoude

  • Client activity not refreshed in console

    We have SCCM R2 server.
    In SCCM console where I see all devices and by clicking each device I can see General information, Client Activity, endpoint Protection information.
    So question is why info under Client Activity is not refreshed - Hardware and Software scan?
    In client resource explorer I can see that hardware scan occurred almost 1 hour ago.  Is there any schedule when this information changes?
    In picture last hardware scan was in January because this computer was not in network from that time.

    That information is summarized every 4 hours (or so) IIRC.So just wait some time and refresh the console then.
    Torsten Meringer | http://www.mssccmfaq.de

  • Current Android 2.1 OS Not Compatible with Bluetooth Voice Activation

    After spending two frustrating days trying to make Bluetooth Voice Activation work with the HTC Incredible Android, I found out from HTC technical support that the Android 2.1 OS is not compatible with Bluetooth Voice Activation.  Supposedly changes to the operating system will correct the problem, but you're out of luck until then.....whenever 'then' is!  It appears that Verizon and HTC  have not choosen to include that information in their marketing material.  A bit irresponsible, especially if you live in a state that requires handsfree operation of your phone in an automobile.   

    It seems that Moto has a workaround in 2.1 on the Droid X:
    I was just at VZW store this morning looking at the Droid X (which is currently at 2.1), and specifically asked an employee about this and he showed that it's solved on the Droid X -- he paired his bluetooth and demo'd handsfree dialing it for me.
    Unfortunately, the Droid X is probably too large for me or my wife and the Droid Incredible doesn't have a solution for bluetooth handsfree dialing (yet).

  • [SCCM 2012 R2] How to speed up refreshing of Client Activity Information

    Hi All,
    How to force update from real HW inventory information in Database to Client Activity Status (Hardware Inventory)?
    Thank you in advance.
    Regards,

    I created a [semi-automated] script that reads All System Collection and I want to find out what computers never done HW inventory and what computers did not report HW inventory for more than 60 days.
    I have a workaround creating separate collections for this script but I want to solve this in easiest way.
    Additionally missing of proper/real HW Inventory information in SCCM console is misleading new SCCM admins.
    Regards,

  • SCCM 2012 client activity BLANK

    Many of our clients aren't talking with SCCM correctly for some reason.  If I look at the devices they're all missing client activity, policy request, client check result, status message, management point, etc.. etc.. We have an enterprise of over
    2000 machines and it seems like only about 200 are affected.  I've looked at boundaries and everything looks good so I'm not sure where to begin.  Help!

    I have found on some of my sytems this is the result of an incorrect/invalid GUID.  The following has worked for me;
    * Uninstall the CCM client (or you can stop the CCMEXEC service)
    * Rename c:\windows\SMSCFG.INI
    * At a command prompt: certutil –delstore SMS SMS (this deletes the SCCM certificates)
    * Reinstall the CCM cleint
    Client will disappear from Configmgr but eventually (sometimes an hour or more) will show up correctly.

  • SCEP Client Activity Logs Files - Retention Policy?

    In SCEP 2012....
    1. Where are client activity log files stored?  
    2. What is the default retention policy?  
    I remember with FCS, I think the historical data was stored for 14 months (by default).  Is that the same for SCEP?
    Andrew Marcos

    Logs are in c:\program data\Microsoft\Microsoft Antimalware\Support.
    Not sure on retention as I am working in non-persistent VDI's that get their logs reset after a log off!
    Cheers
    Paul | sccmentor.wordpress.com

  • Please tell me how to use the Simple bluetooth client server example.

    Hi i used the simple bluetooth client server example in labview 7.1. Iam getting an error saying your system does not support the network operation.  I have following doubts also.
    1. Should i pair the device before running the labview.
    2. Should i enable the file transfer wizard in the software given with the bluetooth adapter.
    Please help
    Thank you
    R.Prem kumar 
    09940446193

    Hi R.Prem,
    Could you please let me know what error code is associated with this error message? Also could you please provide a description of the setup you are currently using? Thanks!
    Best regards,
    Steven

  • Endpoint Protection Client Activity Log

    Hello
    I'd like to know how long SCCM 2012 keep the Endpoint protection client activity logs (logs of scan,detection, quarantine..etc) and if i can change it?
    thanx 

    HI,
    Endpoint Protection history data is deleted after 365 days, it can be controlled in the Site Maintenance task "Endpoint Protection is Delete Aged Endpoint Protection Health Status History Data"
    There is also a setting for "Delete Aged Threat Data" which is set to 30 days. It depends on which level of details you are after but it sounds like you should increase the "Delete Aged Threat Data"
    Regards,
    Jörgen
    -- My System Center blog ccmexec.com -- Twitter
    @ccmexec

  • Windows 7 KMS client activation error

    hi,
    Windows 7 KMS client activation error
    Any known issue?
    Thanks

    This problem occurs if the KMS server does not find a valid Windows marker in the ACPI_SLIC table in the computer's BIOS program. This problem occurs for one of the following reasons.
    Cause 1
    You purchased a computer that has a qualifying Windows operating system installed. However, the Windows marker in the ACPI_SLIC table is corrupted.
    Cause 2
    You purchased a computer that does not have a qualifying Windows operating system installed. In this case, the Windows marker is not present in the ACPI_SLIC table.

  • Problem in Bluetooth client program

    Hello, i'm developing a J2ME application. It runs over a mobile phone with Bluetooth and it should connect with an BT Adapter. Mobile phone rol is client, and the adapter is the server.
    I have a problem because when mobile phone executes the method public void serviceSearchCompleted(int transID, int respCode) , it stops and doesn't continue with the rest of the code...
    I have developed the app. in this way: I finish the process of inquiry, then, i search for services, I find the services in the server, keep them in a vector, and, when the search is completed I call a method called startConnection() that tries to connect with the services found in the server.
    However, I have a doubt: Should I call startConnection() when a service is found ( public void servicesDiscovered(int transID,ServiceRecord[] servRecord) ?
    I see that when the program calls serviceSearchCompleted all is finished. waht can I do????
    Here is the code: ( the inquiry methods are previous, but I don't post it because they run properly...)
    public void servicesDiscovered(int transID,ServiceRecord[] servRecord) {
    for(int i=0; i<servRecord.length; i++){
    ServiceRecord service = servRecord;
    servicios_encontrados.addElement(service);
    try {
    icon = Image.createImage("/icons/BT.jpg");
    } catch (Exception e) {
    icon = null;
    myInfo.setStatus("Enviar ",servicios_encontrados.toString(),icon,AlertType.INFO);
    GlucoMidlet.getInstance().showDisplayable(myInfo);
    public void serviceSearchCompleted(int transID, int respCode) {
    switch(respCode) {
    case DiscoveryListener.SERVICE_SEARCH_COMPLETED: System.out.println("Busqueda completada "+"con normalidad");
    try {
    icon = Image.createImage("/icons/BT.jpg");
    } catch (Exception e) {
    icon = null;
    myInfo.setStatus("Encontrados",servicios_encontrados.size()+"servicios encontrados",icon,AlertType.INFO);
    GlucoMidlet.getInstance().showDisplayable(myInfo);
    if(servicios_encontrados.size()!=0){
    startConnection();
    }else{
    try {
    icon = Image.createImage("/icons/BT.jpg");
    } catch (Exception e) {
    icon = null;
    myInfo.setStatus("Enviar niveles de glucosa","No hay servicios",icon,AlertType.INFO);
    GlucoMidlet.getInstance().showDisplayable(myInfo);
    break;
    case DiscoveryListener.SERVICE_SEARCH_TERMINATED:System.out.println("Busqueda cancelada");
    break;
    case DiscoveryListener.SERVICE_SEARCH_DEVICE_NOT_REACHABLE:System.out.println("Dispositivo no alcanzable");
    break;
    case DiscoveryListener.SERVICE_SEARCH_NO_RECORDS:System.out.println("No se encontraron registros"+" de servicio");
    break;
    case DiscoveryListener.SERVICE_SEARCH_ERROR:System.out.println("Error en la busqueda");
    break;
    public void startConnection(){
    for (int i=servicios_encontrados.indexOf(servicios_encontrados.firstElement()); i<=servicios_encontrados.indexOf(servicios_encontrados.lastElement());i++ ){
    btconnect((ServiceRecord)servicios_encontrados.elementAt(i));
    public void btconnect (final ServiceRecord sr){
    Thread th = new Thread() {
    public void run() {
    String url = sr.getConnectionURL(ServiceRecord.NOAUTHENTICATE_NOENCRYPT, false);
    StreamConnection connection = null;
    ByteArrayInputStream bais = null;
    ByteArrayOutputStream baos = null;
    try {
    connection =(StreamConnection) Connector.open(url);
    bais = (ByteArrayInputStream) connection.openInputStream();
    baos = (ByteArrayOutputStream) connection.openOutputStream();
    } catch(IOException exp){
    ActionsController.notifyException("Error al transferir datos, IMPORTANTE.");}
    send_command(connection,bais,baos,ID,url);
    send_command(connection,bais,baos,GET_METER,url);
    send_events(connection,bais,baos,GET_EVENTS);
    cancelar(); //cancelamos las busquedas
    /* } finally {
    try {
    if(bais != null)
    bais.close();
    if(baos != null)
    baos.close();
    if(connection != null)
    connection.close();
    } catch(IOException e) {}
    th.start();

    jaime_zgz
    Just a thought.
    The loop in your startConnection() sequentially attempts to connect to all discovered services. This may not be supported. One service may need to be disconnected in order to connect to another.
    OK since each attempt is in a new Thread, it should throw a IOException for those attempts that fail on this account, but maybe you could simplify it and attempt to connect to just one service, and see what you get.
    I have limited experience in BT, so don't trust me on everything :-) but ohterwise your code looks OK.
    All the best, Darryl

  • SP1 to R2 upgrade no client activity

    I have updated from SP1 to R2 and all seems fine, i have since changed Hierarchy Settings to update client automatically within 2 days. Its now been 2 days and there is no sign of any clients being updated. All clients say
    inactive and don't seem to have any activity via heartbeat since the upgrade to R2 but do show recent logons so there is some kind of communication's. I have deleted and recreated my
    DP as there was an error before. 

    PolicyPV.log looks OK although i can post the log? Or what statement should i be looking for.
    LocationServices.log, CCMMessaging.log
    from what i can see most state message 0. 
    Task manager shows a successful config manager heath evaluation but no update scheduled 
    using tracetool i do have this error on my MP
    CMPControlManager::PublishInDNS: DnsReplaceRecordsInSet() failed with status 9005.

  • Can I have 2 Bluetooth connection active at the same time? Works with other phones...

    Is it possible to have one Bluetooth connection for "phone audio" and a 2nd connection for "A2DP" music streaming at the same time on my iPhone 5? My car-stereo has Bluetooth for phone calls but NOT for audio streaming. However, there's a 3.5mm aux in on the head unit. On my S5 I can create one Bluetooth connection to the car-stereo and select "phone audio" and a 2nd for my Bluetooth aux-in adapter. It works perfect since months but last week I changed back to an iPhone (5s) and it appears that I can only have ONE BT connection active at a time!?  Any ideas anyone?

    Hi SwedelostinAmerica,
    Welcome to the Apple Support Communities!
    The iPhone can maintain multiple pairing records, but it can only connect to one headset or hands-free device at a time. However, in your situation there may be a solution. You can connect the iPhone via Bluetooth for calls and use the 3.5mm jack on your iPhone and car radio to connect for music.
    The following article explains Bluetooth pairing and usage. Please use it as a reference.
    iOS: Third-party Bluetooth accessories
    http://support.apple.com/kb/HT1664
    Have a great day,
    Joe

Maybe you are looking for

  • Question concerning backing up itunes' music's meta data...

    That big ole xml file with your music's information contains an absolute reference to your music files. Now if i were to reinstall my OS and somewhere in this process the letter of the drive containing my music files changes, is itunes "smart enough

  • Bookmarks keep appearing in autocomplete

    I have tried going to "Tools -> Options -> Privacy -> When using the location bar, suggest: " If this option is set to "History and bookmarks" bookmarks will show up as the first suggestion with a star next to them. If this option is set to "History"

  • Sum a field in repeat region

    Hi There, I am trying to sum a field in a repeat region. That is, the repeat region displays on page as per normal but then have a total field based on the sub total fields stored in the data base for each record. Any help is appreciated. Cheers

  • Attached libraries not executing on generated forms

    Version 6.0 designer. I am using CG$STARTUP_MODE for form that can be called from a parent form. The OFGNAVL library is attached to the form after it is generated. CGNV$.INITIALISE AND CGNV$.TIDYUP do not execute with error ORA-06508 could not find p

  • INIT: Id "c0" respawning too fast: disabled for 5 minutes

    try to do a new arch "2007.08 dont't panic" installation on my toshiba notebook. but get always the errror: INIT: Id "c0" respawning too fast: disabled for 5 minutes thanks the output of /etc/initiab looks about like this, have a foto of the /etc/ini