Asking for example code (RFComm Bluetooth Application)

hello there, i almost give up on finding a way to connect a client application using widcomm sdk on pc to server application using jsr82 j2me on mobile ph0ne ...
anybody can give me an example code for connecting both of them ...
if u can, or have some advice for me please give me that valueable thing...
my recent not working application :
- server deployed on mobile phone using jsr82 j2me
- client on pc using widcomm sdk visual c++ .net
or may be u can correct and give me advice for my code bellow...
Server (JSR82) :
private static final UUID APP_UUID = new UUID("F0E0D0C0B0A000908070605040302010", false);
private static final String URL = "btspp://localhost:"+APP_UUID+";name=My App;authorize=false";
private static final String APP_ID = "My App";
private static final int ATTR_ID = 0x1234;
try {
localDevice = LocalDevice.getLocalDevice();
localDevice.setDiscoverable(DiscoveryAgent.GIAC);
notifier = (StreamConnectionNotifier)Connector.open(URL);
DataElement base = new DataElement(DataElement.STRING, APP_ID);
record = localDevice.getRecord(notifier);
record.setAttributeValue(ATTR_ID, base);
connection = notifier.acceptAndOpen();
catch(Exception e) {
System.err.println(e.getMessage());
Client (Widcomm SDK) :
StartDiscovery(m_BdAddr, m_pServiceGuid)CSdpDiscoveryRec Sdp_Record;
if ( ReadDiscoveryRecords(m_BdAddr, 1, &Sdp_Record, m_pServiceGuid) )
UINT8 scn;
SDP_DISC_ATTTR_VAL *pVal;
if ( Sdp_Record.FindRFCommScn(&scn) )
//if(Sdp_Record.FindAttribute(0x1234, pVal))
I can't find an RFComm channel number from server (the j2me one)
regards, Arch_Cancer
// sorry my bad english
Edited by: Arch_Cancer on Jun 20, 2008 12:03 AM

Still looking for solutions. Looks like many Z-W88 users are having trouble with iPhone only. Assistant does not ask for pairing code, just ask confirmation of a six digit number or Bluetooth device.
Also this problem is more common on recent iOS versions.
There is not info about how to force iPhone to ask for pairing code, and support at stores have no idea how to make it work either, so I'm kind of stuck with this.
If anyone have any ideas I'm open to them...
Thanks :)

Similar Messages

  • Acrobat 10 pro doesn't ask for validation code

    installing acrobat10 pro on imac with 10.8.  When I try to open first time it doesn't ask for validation code. Application opens for a few seconds then crashes.I've tried installing 3 times with same results. What am I missing?

    I thought I was buying the complete suite but it came as CS and Acrobat as separate discs, but I found a fix on one of the forums. I had to throw away an adobe folder that held the registration for CS and then it asked for Acrobat registration. Apparently I need to install Acrobat before CS?
    Thanks for your response.

  • I GOT A GIFT FROM I TUNE STORES BUT CAN NOT DOWN LOAD AND INSTAL ON MY I PHONE....I GET THIS MESSAGE ASKING FOR A CODE WHICH I DO NOT HAVE AND DO NOT KNOW HOW TO GET......

    i got a gift for my i phone 4s but i can not download and redeem same as i tune is asking for a code number which i did not get and i do not know how to get..........pl help solve this problem...thanks.

    SW,
    I don't know what the problem is with your corrupt/unopenable document on CD. I wonder if you can display it with QuickLook.
    Select the file in Finder and hit the Spacebar. If the file is displayed properly, you can capture it as an image with Grab.app or by Shift-Command-4, > drag capture box.
    Not knowing the complexity of your document, it's difficult to say what you should do next. I'd submit the graphics to an OCR application and extract the text, to be used in reconstructing the original document.
    Jerry

  • I am trying to download whatsapp on my iphone 4  when I hit the redeem button it shows I have $14.73 in my account, but asks for a code.  I tried my itunes card code but it says it was already used. How can I tap into my account to pay for the app?

    I am trying to download whatsapp on my iphone 4.  It asks for my apple id and password and when I sign in , it gets me to a page that says redeem ...when I hit redeem it shows I have a $14 balance in my account and asks for a code  -  I tried entering the itunes card number...it says it has already been used.  How do I tap into my account to pay for the app? 

    It says   at the top      under Redeem after I touched that:
              $14.73
    Account: [email protected]   (my account name)
    Enter your Gift Card or Download Coad

  • HT2731 How do I enrol in iTunes u? It asks for a code and I don't no what that means and my iPod does this wierd thing!....

    Hey I need help in enrollment on iTunes u I already did my appleID but then it asks for a code and idk what that is. Btw I need iTunes u to catch up in school cuz some things I'm bad at and I tried diff. Things in school and it didn't work so I'm trying this out, school has just begun... It would b totally awesome if some1 could get back to me on this plz email me at [email protected]..........and I also have troubles with my iPod touch 4g, when I'm searching things on the google app my iPods screen turns black for 5 seconds then goes to the home screen and it does this every time I'm in the google app and sometimes it does this when I'm playing a game or looking on iTunes plz help me!!!! P.s I won't b on here very much so if you have an answer for me email me :) at [email protected]      :) :)

    I am using MAC OSx 10.5.8 (9L31a) as my operation system.  The TV says "No signal.  Check connected device's power, cable connection and source selection."  Seems to me that that goes in hand with what the Samsung tech said about the Mac needing to be forces to use the external display.  But how do I do that?

  • My apple ipad is asking for a code which I do not have and is now deaktivated

    My iPad asked for a code which I did not have. Now it is deaktivated. I have a problem!

    Whether you set the passcode or not, if the iPad insists that you enter the passcode, you will have to restore your iPad if it is disabled now.
    Forgot passcode for your iPhone, iPad, or iPod touch, or your device is disabled - Apple Support

  • HELP!!!! My n73 is asking for Lock code..

    Please help me! My n73 is asking for Lock code, but it doesnt accept my private code which i usually used... how can I reformat my phone manually? i am a media and my phone is very necessity to me... please help me...

    The default security code is 12345. If would be something else if you have changed it but try it anyway.
    If it doesn't work then your only option in your local Nokia Care Centre. Remember to bring the receipt or any other proof of purchase with you.

  • HT3702 Am having problem here I upgrade my phone 2weeks ago but if in my iTunes to download a new app it asking for security code can you help pls

    I want to download a app but iTunes keep asking for security code can someone help please

    What problem are you having ? Messages about security codes usually refer to the 3 or 4 digit code on the credit card that you have on your account : http://support.apple.com/kb/HT3541

  • Unknown structure ID 0 for flexfield code GL# with application ID 101

    Hi Experts,
    I am working on Report builder 6i, EBS 11i, and data base 9i. I have standard report, when i am running it, it's giving below error.
    ERROR: APP-FND-01016: Routine FDFRKS: Unknown structure ID 0 for flexfield code GL# with application ID 101.
    It's calling below thing in Before Report Trigger.
    begin
    SRW.USER_EXIT('FND FLEXSQL CODE="GL#" NUM=":P_ACCT_STRUCT_NUM"
    APPL_SHORT_NAME="SQLGL" OUTPUT="P_acct_flex"
    MODE="SELECT" DISPLAY="ALL" TABLEALIAS="GCC"');
    exception when srw.user_exit_failure then
    srw.message(3,'Failed in GL#/Select');
    raise;
    end;
    Could somebody help me what could be the reason for this error.
    Thanks.

    Hi,
    Is the error still ocurring ? Is yes, please refer the below note in Metalink. This should resolve the issue.
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=227438.1
    -Sailaja.

  • Not able to edit credit card because it asks for security code of the expired one which has been disposed

    Not able to edit credit card because it asks for security code of the expired one which has been disposed

    Try tapping on NONE and then tap on DONE to remove the payment information, then go back in and try to add the new card if you want one on the account.

  • Apps locked / frozen and on going to setting and rest it asks for pass code. Use standard one that I use all the time and it states 1 failed attempt. I have not forgotten pass ode as I use it 20 times a day. Over 70 years of age so make the response simpl

    The 3 apps required updating but they have frozen. Did not realise this until Candy Crush froze. Went to reset and it asked for pass code. I entered standard code and it stated one failed attempt. I may be over 70 years of age but have not forgotten pass code!! I hope that the solution is simple!!

    If your iPad was used by another person in the past, it may be asking for their passcode.
    If your iPad has been synced with a computer before, restoring with your computer should fix it now.
    Read all directions.
    Per these directions...
    http://support.apple.com/kb/HT1212

  • HT204291 Apple TV is asking for a code

    Apple TV is asking for a code and I don't know how to enter that into my phone when trying to stream video from Amazon Video

    There was likely a passcode set for airplay, you can go into the settings to reset/disable
    Amazon has chosen not to enable airplay at any rate

  • Lock my iPad asking for PUk code I have no idea what is that

    Need help locked my iPad asking for PUK code to unlock and I have no idea

    I don't think you can, you could try to email apple about the problem or depending on what you mean by "info" if it is just apps you can re download them again once you restore it.

  • HT1688 The number code would not allow me to input a 1 2 or 3 for my 4 digit code.  After numerous tries, it now says iphone disabled connect to itunes.  When i connected to itunes, it asked for the code, but I could not enter it.  How do I fix this probl

    The number pad would not let me type in a 1 2 3 for my 4 digit code.  After numerous tries, the phone now says iphone disabled connect to itunes.  When I connected to itunes, it asked for the code which I was unable to enter.  Help!

    Open iTunes on computer, connect iPhone to computer with USB cable. Hold both Home and Power buttons on iPhone until iTunes recognizes iPhone in Recovery Mode. This usually takes about 20 seconds of holding both buttons. Restore the iPhone Firmware.

  • [svn] 4595: Fix for - Example code in ObjectProxy ASDoc page is incorrect

    Revision: 4595
    Author: [email protected]
    Date: 2009-01-20 08:11:25 -0800 (Tue, 20 Jan 2009)
    Log Message:
    Fix for - Example code in ObjectProxy ASDoc page is incorrect
    Also modify the build.xml for "ant asdoc"
    QE Notes: None
    Doc Notes: None
    Bugs: SDK-18335
    tests: checkintests
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-18335
    Modified Paths:
    flex/sdk/trunk/asdoc/build.xml
    flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectProxy.as

    >
    build url like this,
    '<a href=f?p='||NV('APP_ID')||':45:'||V('APP_SESSION')||'::NO:RP,45,CIR:ub_branch,ub_supplier,ub_customer,ub_product,ub_aging,ub_destination:'||REPLACE(branch,' ','%20')||'%2C'||REPLACE(ub_supplier,' ','%20')||'%2C'||REPLACE(ub_customer,' ','%20')||'%2C'||REPLACE(ub_product,' ','%20')||'%2C'||REPLACE(ub_aging,' ','%20')||'%2C'||REPLACE(ub_destination,' ','%20') ||'>All</a>',All of this is handled by the apex_util.url_encode API function as described above.
    However, as also mentioned above, the best approach is to only pass discrete key values in URLs.

Maybe you are looking for

  • DVD Player does not play a DVD

    My DVD player can play commercial DVD without any problem. I use a DVD Video Recorder to burn a DVD. I finalised it confirmed it can be played in my Windows PC PowerDVD version 6 OEM edition. When I put it in my PBG4 superdrive, the DVD Player could

  • Counting Rows of a Specific Type

    I have the following dataset and I was wondering if someone could help me out with the following problem: <data> <row type="A">item1</row> <row type="B">item1</row> <row type="B">item2</row> <row type="C">item1</row> <row type="C">item2</row> <row ty

  • What is it called?

    Hi gang! In Illustrator, when you drag with the Pen tool, the pen icon turns into a black arrowhead-ish shape. What is that icon called? Many thanks!!! Mike Witherell in Alexandria, Virginia

  • Help in sending 23 min movie to other people to be able to be opened on their iPhone or iPad?

    Help in sending 23 min movie to other people to be able to be opened on their iPhone or iPad?

  • Feature Request / Form Submit

    There are a couple of improvements I believe would make Spry's "form submit" much better: 1. It needs to (optionally) clear input from each field upon successful submittion (ie. return to default value). Of course this behavior automatically happens