Beginning Bluetooth Programming - Basic Stack Question

I have moderate but not extensive experience with Java development, and have just stumbled across the javax.bluetooth JSR-082 packages. I'm interested in using these packages, but have a general question or two that deals just as much with bluetooth as it does with Java itself...if anyone could be of help, it would be much appreciated.
Despite all the articles I've read, I'm a bit confused about the initialization of the bluetooth stack. My laptop has bluetooth integrated into it, is running XPSP2, and from what I can tell its now using the WIDCOMM driver. Does this mean that I have access to the WIDCOMM stack (ostensibly using the Broadcom SDK)? Or do I need additional software? I also keep reading that XP has included the Microsoft Bluetooth Stack...but nowhere do I read how to access it, nor any instructions, nor the beginning of instructions, for initialization of either the WIDCOMM or Microsoft stacks within the context of JSR-082. Any suggestions or input would be appreciated.

See: http://developers.sun.com/techtopics/mobility/midp/articles/bluetooth1/

Similar Messages

  • A few basic string Questions

    I would like to know how to make a string with the same characters as another string. Also, how can I set an int with the same value as there are characters in a string. It would really help if you gave me an example, because I am new to java and pretty much lost.

    That page has alot of information, but I really don't
    know how to use any of it. It would be really helpful
    is some one gave me an example. I see something like
    "int length ( )", but I don't know how to use it.You don't know how to call a method? Then you need to start from the very beginning:
    Sun's basic Java tutorial
    Sun's New To Java Center. Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    http://javaalmanac.com. A couple dozen code examples that supplement The Java Developers Almanac.
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's Thinking in Java (Available online.)
    Joshua Bloch's Effective Java
    Bert Bates and Kathy Sierra's Head First Java.
    James Gosling's The Java Programming Language. Gosling is
    the creator of Java. It doesn't get much more authoratative than this.
    Here's a freebie though:String str = ...;
    int len = str.length();

  • Basic iPhoto questions:

    I have some Basic iPhoto questions before I start using the program:
    - does iPhoto apply any compression or change images in any way when they
    are imported?
    - after images are imported, can the original source folder of images be deleted off of the mac?
    - can Quicktime files exported from iPhoto be viewed on a Windows computer?
    - can iPhoto handle large resolution images that might be as large as 8-15mb each? does it display them quick? are there any known file size issues?
    Thanks!!!!

    kat.
    Is there a way to use iPhoto on a network so other users can read and possibly write to an iPhoto library on a networked mac?
    iPhoto is a consumer level photo organiser, not a server. It's possible to share photos but libraries are very difficult and fraught with the danger of database corruption. Some have reported success.
    Is it possible to password protect or secure certain images in the library so they can not be seen by anyone?
    No. The best I can suggest there is to create a second library and store it in a secure area like a protected dmg. But remember, you can only have one library open at a time.
    After photos are deleted from iPhoto, are there any remaining traces or cached files anywhere other than the trash
    If you delete photos from iPhoto and empty the iPhoto trash then the pics are removed from the Finder as well. They remain as findable as any other deleted file from that point, which is, very, if the searcher in knowledgeable.
    Regards
    TD

  • Help with program structure - simple question.

    Hi. I need a piece of advice on how to create the correct structure for my program. It consist on two main processes:
    1)Detecting time difference between 2 rising edges, and showing the data. I used the concept of another user "panoramarts" that you can see here:
    http://forums.ni.com/t5/Digital-I-O/Measuring-Time​-between-two-Digital-Signals/m-p/2091868#M16230
    (If anyone knows a better way to do it I will really appreciate it)
    2) A continuous process.
    I attached a picture of the structure I am using. The numbers I will refer to, are indicated there.
    The program basically starts counting the time until a rising edge is detected (number 2 in the picture). After that the next sequence is executed (number 3 in the picture) counting the time again until the next edge is detected. After that the subtraction is made to have the time difference and then displayed (number 4 in the picture).
    Here is the problem: I have a continuous process that must be executed, so if I place it in "Number 1" then the edge detection must be running otherwise i do not see the continuous process (is like Labview execute de FLAT sequence, and after that the continuous process). If a place the continuous process in another While loop, then is like sometimes I get inaccurate data from the edge detection.
    How can I solve that? Is there another way to acquire time between edges? I hope you can help me without the VI.
    I am using Arduino, so I can not use DAQmx VI's.
    DMDsync
    Attachments:
    program structure.jpg ‏54 KB

    Thanks for the quick feedback!
    I believe my problem is that I am not using the best way to estimate time between edges. As I previously said, I am using almost the exact VI that "Panoramarts" shared in this link:
    http://forums.ni.com/t5/Digital-I-O/Measuring-Time​-between-two-Digital-Signals/m-p/2091868#M16230
    The only difference is that instead of a DAQ assistant in each of the While Loops, I use the same input for both of them. It works ok. It measure the time difference between the 1st and 2nd edges, the 3rd and 4th, and so on. All that VI is inside a while loop to continuously perform the counting. May be I can simplify my question:
    How can I continuously measure time difference between incoming edges (it could be a Boolean variable varying from true to false periodically) in a VI that already has a continuous process running?
    As Altenbach said, I used a wait statement in the continuous process (as it is not necessary a fast data update for it, because it is just a simple temperature measurement), but that delay created some faulty timing in the edge timing sequence.
    Any ideas?
    Thanks again!
    DMDsync

  • Adding Date/Time Field + X Number of Days - Basic Calculation Question

    I am assuming this is a basic calculation question. New to Adobe LiveCycle Forms.
    I have a simple form containing a table. The table appears as such:
    Text
    Formatted as Date/Time Fields
    Header 3
    Monday
    user wil choose the beginning date (Date/Time) this is DateTimeField1
    Tuesday
    this should calculate DateTimeField1 + 1
    Wednesday
    this should calculate DateTimeField1 + 2
    Thursday
    this should calculate DateTimeField1 + 3
    Friday
    this should calculate DateTimeField1 + 4
    Saturday
    this should calculate DateTimeField1 + 5
    Sunday
    this should calculate DateTimeField1 + 6
    Calculations are performed after the date is chosen for Monday. My mind tells me the simple calculation of DateTimeField1 + 1 is not going to work (and in fact doesn't!) as it needs to change Monday to a number first. I saw on another thread the following:
    Num2Date(Date2Num(Date(DateTimeField1), "DD.MM.YYYY")+7, "DD.MM.YYYY")
    Thought this was going to get me close. No cigars though!
    Any quick help is greatly appreciated. And since I am new to this, details about what needs to be changed would be great too!
    Thanks

    Here an addition for you date field.
    This FormCalc script in the exit:Event will check it the selected date is on a monday.
    If not it will go the days back until the last monday.
    var Selection = Date2Num($.formattedValue, DateFmt(2))
    var WeekDay = Num2Date(Selection, "E")
    var NewDate
    if (WeekDay eq 1) then
              NewDate = Selection - 6
    elseif (WeekDay eq 3) then
              NewDate = Selection - 1
    elseif (WeekDay eq 4) then
              NewDate = Selection - 2
    elseif (WeekDay eq 5) then
              NewDate = Selection - 3
    elseif (WeekDay eq 6) then
              NewDate = Selection - 4
    elseif (WeekDay eq 7) then
              NewDate = Selection - 5
    else
              NewDate = Selection
    endif
    $ = Num2Date(NewDate, "EEE DD.MM.YYYY")
    Hope this helps, too.

  • Object class deployment - Basic form question

    OK, I subclass calendar object from Oracle provided standard
    object class. What do I need to deploy to use this form now
    apart from calendar.pll and my fmx. What about the object class
    from which I sub-class. Do I need to compile and deploy that
    also? How will form resolve this on run time the parent object
    class as I really did not copy, just sub class and we do not
    deploy original class? Basic form question. Thanks.

    You can set the "help" property on the field (which gives you the little "information" icon link beside the field).
    You could also try adding another field of another class above or below:
    <Display class='InlineAlert'/>
    <Display class='ErrorMessage'/>
    <Display class='HtmlPage'/>
    ..etc
    -Rob

  • J2SE Bluetooth Programming-connecting PC to  a Bluetooth Eanbled Phone

    Hi
    Iam trying to connect my PC (USB Bluetooth Dongle connected)   to a Bluetooth Phone,
    need to transfer some files using Bluetooth
    There are Sufficeient information on J2ME Bluetooth Programming,
    Does anybody know of a tutorial on J2SE bluetooth programming?
    Kindly Reply,

    There is no spec for Bluetooth in JSE. However, there are implementations of the JSR-82 spec (for JME) on the Standard platform. Off hand I can only recall BlueCove. Might be a good start.

  • Basic Exporting Question

    My main question is a very basic exporting question, but here is a super-condensed explanation of my big-picture goal for context:
    Large (~450 MB) aiff on CD --> trim w/ Quicktime --> small (~16 MB) MP3 in iTunes
    I would like to take an audio file (aiff) that is approximately 450 MB and export it from Quicktime and in doing so, reduce the file size and convert it to MP3. When I simply try to export it, it doesn't ask me about what size I want, nor does it give the option of MP3 formatting.
    I have figured out how to reach my goal, but it's a mess. After I make my trims in QT, I have to:
    1. select "share" instead of "export".
    2. It asks me what size I want and I select small.
    3. The file is then exported as a Quicktime movie into Mail and the size is reduced from 450 MB to about 20 MB.
    4. I then have to "right-click" on the attachment in the email that is created,
    5. save the attachment,
    6. discard the email,
    7. import the file into iTunes, and
    8. create an MP3 in iTunes to finally arrive at my goal.
    This seems like a ridiculously convoluted process to change a large aiff to a small MP3 and put it in iTunes. Any suggestions?

    Thanks. I guess the basic answer to my question is that it can't be done in one or two fell swoops. The problem is that it starts on a burned disc, and I need to make edits to it before it ends up in iTunes (to be eventually used in iWeb). I was hoping to avoid juggling back and forth between iTunes and QT. I either would have to send it back to QT to do the edits after -->iTunes-->mp3, or import the large file from the CD to QT, make the edits, save changes, import large file to iTunes, convert to mp3.

  • Premiere Elements 7 Basic Editing Question for DV

    Hello all,
    I have PE7, a Q6600 quad-core, and Windows 7 64bit.
    I have captured about 6 hours of Standard Definition 16:9 DV footage from my church's grand opening ceremony.  Video was captured from an old Pana PV-GS320.
    The church wants a dynamic video to be produced from the captured footage (60 minutes at the most in length).  I plan on doing many different effects including semi-transparent video layering, picture in picture, inserting photographs, and inputing audio clips from the ceremony.  The final product will be a standard definition DVD disc.
    I've done some research regarding how DV is interlaced and output for  DVD should be interlaced (unless I'm wrong in that conclusion, let me  know).  I also know that doing heavy editing with interlaced footage  (slowing/speeding footage, zooming in and out, rotating, multiple  layering, etc) may create flickering and "mice teeth" in the video.  I've also searched through these forums and keep on running into HD  questions/solutions...  I guess I'm asking an old question that was probably  answered long ago when DV tape ruled the world.
    QUESTION 1:
    So, if I may ask, in order to get the best results, should I prepare my raw footage in PE7 before editing it by (1) by deinterlacing it? (2) exporting it as progressive? (3) both? (4) leave it alone and begin editing away? or (5) am I missing another option?
    QUESTION 2:
    Also, what resolution would be best to import the photos into the project?
    I know the best way to work with any video is to make as little changes as possible to it, but this is unavoidable in my case.  No one wants to sit through 6 hours of video...
    Thankyou very much for reading my questions and I really hope you have some time to answer it!  Thanks for any information!  I really appreciate it!
    -141rockwell

    Relax, rockwell. You're making it all unnecessarily complicated.
    If you've captured your video as DV-AVIs over a FireWire connection, you won't get "mice teeth" in your final product. The program is designed to work with interlaced video and create interlaced DVDs. The results should look virtually as good as the original footage! You can't damage video with "excess editing."
    Just trust the program to take care of the technical issues. You can concentrate on the editing.
    As for any photos you want to add, you'll get the best results if they're no larger than 1000x750 pixels in size, per the FAQs to the right of the forum.
    http://forums.adobe.com/thread/431851?tstart=30
    Meantime, if you're looking for some basic help with the program, be sure to check out my free 8-part Basic Training tutorials at Premiere Elements support site Muvipix.com.
    http://forums.adobe.com/thread/537685?tstart=0

  • Bluetooth simple client example question

    Dear all,
     I am not sure whether I am close to make it. I update my bluetooth driver {http://forums.ni.com/ni/board/message?board.id=170&message.id=301780#M301780}, so it seem the labview (simple bluetooth server example) can work with my bluetooth (please read the first picture). However, the error message comes up when I run the simple client program. I have a question. Do I have to make the client and the server program in two computer?
     I need your help
    Thanks
    ====================
    =Labview 7.0 & 8.0 & 8.5=
    =====================
    Attachments:
    labview5.JPG ‏203 KB
    labview6.JPG ‏214 KB

    Just want to make a couple things clear
    1. my bluetooth device is working well, after I remove dell driver and using XP bluetooth stack <-----I think
    2. I can run the server without no problem, the problem comes from the client part.
    I have attached the pic from the device manager
    Please help, failure will lose my job
    ====================
    =Labview 7.0 & 8.0 & 8.5=
    =====================
    Attachments:
    labview7.JPG ‏41 KB

  • Removing Programs and eSellerate Question

    I'm currently in the process of moving from a PC running Windows to a Mac. What is the best way to completely remove a program and all of its associated files? It seems that if I move the main App folder to the Trash there are still lingering associated files buried in other parts of the computer.
    This leads me to my second question. When hunting for these other folders I came across something called eSellerate in my Library > Application Support Folder. What is this? It doesn't sound like something that should be there.
    Thanks.

    To remove a program, run its uninstaller if it had an installer to begin with. Alternatively, many Mac apps are just dropped into the /Applications folder and are folders disguised as packages. Just delete them. As for the eSellerate thing, do a google search for it. AFAIK, you had to install something to get it. It isn't part of OS X.
    Since you're new to Macs, see:
    Switching from Windows to Mac OS X,
    Basic Tutorials on using a Mac,
    MacFixIt Tutorials,
    MacTips, and
    Switching to the Mac: The Missing Manual, Leopard Edition.
    Additionally, *Texas Mac Man* recommends:
    Quick Assist.
    Welcome to the Switch To A Mac Guides, and
    A guide for switching to a Mac.

  • 4 basic java questions..

    ok so I already learned Java last year (in grade 11), but my teacher didn't really teach anything, we learnt everything by ourselves from the API... so theres a lot of things I actually don't understand, but for now I want to ask 4 basic questions:
    1. What does static mean?
    2. Why would u "final" a constant variable? ie. If you have a variable called SIZE which is set to 5, so if u want it to be a constant, just never change its value. But what does the keyword final do to it?
    3. What's super? I see it sometimes, and my teacher showed us in the applet exampls to use super.paint(g) or somethign like that for the paint method, but I never use that because I noticed it works fine without it..
    4. Whats a question mark? I saw a game that was made in java and it had a lot of places where it had a question mark , which was part of the syntax. For example,
    int j1 = i != 0 ? i - 1 : 199;
    OR
    JUMPVEL = (fSuperSlime) ? 65 : 31;
    I really don't understand these lines...
    feel free to answer any of these questions...

    wow cool...thanks.. that question mark thing is nice
    saves a few lines..
    now, about super, so u mean u can access the parent
    class's variables?Variables, methods, constructors, if the access level is such that it's allowed.
    This will be covered in any tutorial or text though.
    Sun's basic Java tutorial
    Sun's New To Java Center. Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    http://javaalmanac.com. A couple dozen code examples that supplement The Java Developers Almanac.
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's Thinking in Java (Available online.)
    Joshua Bloch's Effective Java
    Bert Bates and Kathy Sierra's Head First Java.
    James Gosling's The Java Programming Language. Gosling is
    the creator of Java. It doesn't get much more authoratative than this.

  • Basic database question, and subscribe/unsubscribe code

    Hi there
    Although I've created and manage a website, and about a million years ago I worked with databases, I'm still a bit green and in need of some help ...
    I have the website based on my local machine (laptop).  I want to use a subscribe/unsubscribe for a newsletter via the website.
    Before I go ahead with this, I need to clarify a very basic database issue ... would I have to always leave my laptop running in order for people to be able to subscribe to the newsletter on the website, i.e. will it still connect to the database if the laptop is not running?
    I'm using Dreamweaver 3, so I hope I can use this version to connect with a database?  I did install Dreamweaver 4 on one occasion with the intent of upgrading the website to it, but because I'm still a bit unsure of myself and was unfamiliar with the changes the newer version created, I decided to leave it on Dreamweaver 3 rather than risk stuffing the website up completely!
    I also have Dreamweaver UltraDev but for some reason it won't install.
    I'm hoping to follow instructions given on Dreamweaver Developer Centre for setting up a PHP development environment (http://www.adobe.com/devnet/dreamweaver/articles/setting_up_php.html).
    If anyone would be so kind as to advise whether I'm on the right track with all this, using Dreamweaver 3, that'd be great!
    Also, I'm sure this is unlikely, but is there any way to include a subscribe-unsubscribe without having to actually use a database?
    Many thanks in advance    :-)
    Cheers, Chrissie

    Thanks for your help and advice - much appreciated.  I'm going to go the way
    of hosting, as you suggest, and save myself the heartache  
    Quoting jj12689 <[email protected]>:
    To answer your first question, yes your laptop needs to be powered on
    for users to be able to access the database and subscribe/unsubscribe.
    There is another way of doing it, but it requires more work on your
    part. You could make an online program that would generate SQL
    statements and place them in a text document on the server. Every time a
    user subscribes/unsubscribes it would add them to the end of the text
    document. Then you could make an update button on a back-end admin page
    that you would have to push that would take that text file, open it and
    take the sql statements and submit it to the database on your computer.
    I would advise against this method, since it is time consuming, and not
    very fast for today's world. I would recomend using a server based
    database, if the host you currently have dose not have a database, I
    would recomend finding another host. I use surpasshosting.com for my
    hosting because they are cheap, reliable, and have all the requirements
    I need.
     
    Hope this helps...
    >

  • Help with a basic dbx question

    Solaris 10. DBX'ing a core file that was not compiled with any debugging information. When you do a basic "where", you typically get:
    [1] someFile::someFunction(arg1, arg2, arg3, arg4, arg5, arg6) at 0x5ab32x
    Can someone tell me what each of the addresses for the args above are? And what the "at 0x...." is ?
    I am trying to examine the arguments passed into the functions using "examine addr" but having difficulty.
    Thanks

    Without any debugging information, dbx cannot know how many arguments, or of what type, the function has.
    It displays the contents of the stack where the first 6 arguments would be if the registers were spilled, assuming that each argument was one word. Since the actual arguments might not be one word each, and since the registers might not have been spilled, the values displayed don't always have any significance. (If the function has fewer than 6 arguments, the remaining values have no significance.)
    The 0x5ab32x looks like a copying error. Dbx shows the (hex) address where the program crashed. The trailing x cannot be correct.
    You can get a disassembly starting at the function's address, or at some point ahead of the address shown, and try to match it to the source code.

  • Basic css question

    Hi all this is a basic question but I need to ask it
    Ther h1, h2, h3 classes that are set normally at the
    beginning of each style sheet does that meanm that the same values
    are set throughout the whole page? If I have another div how can I
    set another value for the h2 and how would I do it? Is it the same
    for classes and divs? Sorry just trying to to understand it,
    thanks

    And, since a given ID can only be used once per page, it
    would only apply to
    the first such container it found. A class can be used many
    times on a
    page, and so it would apply to every such container.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Michael Fesser" <[email protected]> wrote in message
    news:[email protected]..
    > .oO(Hydrowizard)
    >
    >>Thanks for the replies so if I made did h1, h2 {
    font-size: 80%;} for
    >>example
    >>then if I had an h2 in another div which I wanted
    with font size 40% thyen
    >>how
    >>would I make the font-size change?
    >>
    >> like this?: #mynewdiv h2 {font-size:40%;}
    >
    > This matches all h2 inside a div with the ID 'mynewdiv',
    e.g.
    >
    > <div
    id="mynewdiv"><h2>...</h2></div>
    >
    >> like this?: .mynewdiv h2 {font-size:40%;}
    >
    > This matches all h2 inside all divs with the class
    'mynewdiv', e.g.
    >
    > <div
    class="mynewdiv"><h2>...</h2></div>
    > <div
    class="mynewdiv"><h2>...</h2></div>
    >
    > Micha

Maybe you are looking for

  • Scanning to computer from HP Office jet 6600

    I have a Mac OS X 10.9.4. It will not allow me to scan to my computer. I get a notice that Scan to computer cannot be enabled. I have tried downloading from HP, and still no luck. Any ideas or instructions on what I can do?

  • Got a weird CSS problem that only affect IE

    Can anyone help me out here? - its got to be simple: http://www.fatgraphics.com/green/ The problem is with the text in the main area. It does not show up in MSIE 6 or 7. Sometimes if you resize the page then it does, but the bottom is cut off sometim

  • UCCX drops calls

    Hi, We use UCCX 5.0.2 and CUCM 6.1.2. Several times a day some calls are dropped as soon as the agent picks up the call. If i do a debug isdn q931, I see that call was disconnected from the side of agent. Am I right? But agent doesn't drop that call.

  • After holding c key while rebooting system I do not have an acces to choice of installing mac os from dvd

    Hello, I just wanted to upgrade my Mac OS from Tiger 10.4.11 to a Leopard 10.5 (I run PowerMac G5 Dual 2.0GHz) and I experienced a little problem. To boot computer from the genuine retail Leopard 10.5 DVD I am suppose to hold down the 'option' or 'c'

  • Assigning the Authorization group to particular transaction code

    Hi,   How do we Assign the Aughorization group to particular Transaction code with authorization object. Is there any transaction code ? if anyone know, please let me know. With Regards, Prasad.