Results 1 to 5 of 5

Thread: Bluetooth Bait and Switch

  1. #1

    Thread Starter
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    39,028

    Bluetooth Bait and Switch

    Ultimately, I need something that runs on an Android tablet to interface with a particular Bluetooth device. Hopefully, we'll be able to get something canned that will work, but I thought I'd start looking into alternatives. I know nothing much about programming with Bluetooth devices, so I started looking into it for what I know best, which would be .NET and Windows, even though that ultimately won't work for me. What I found is that there is a whole library for working with Bluetooth so long as I am willing to go UWP, which seems like a dead-end, ultimately. Otherwise, there are recommendations for one or two third party libraries available via NuGet. I have no doubt that I could get a Windows solution working using one of those, but that ultimately won't work for me.

    So, what I'm looking for is some fairly low-level discussion of how interacting with a Bluetooth device works. It appears to be based around sockets, kind of like TCP. Can anybody point me towards resources along those lines?
    My usual boring signature: Nothing

  2. #2
    Smooth Moperator techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,535

    Re: Bluetooth Bait and Switch

    Might be an extreme idea, but consider an Electron app ... there's a BT library that you can use... came across it in my tutorials. I have no need for BT so I didn't look into it very far, just noting that it was there, so I don't know at what kind of level it allows for interaction.


    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    39,028

    Re: Bluetooth Bait and Switch

    Yeah, after more research, I started realizing that accessing Bluetooth isn't all that easy for Windows without third party libraries, but appears much easier for Javascript and Java. That likely reflects the fact that the vast majority of Windows devices probably do not have Bluetooth, while the vast majority of Android devices do. My only Windows computer that have Bluetooth are my Surface Pros, while none of my other Windows computers have Bluetooth. Meanwhile, I'm not sure that I've ever seen an Android device that did NOT have Bluetooth.

    I'll leave this open for a bit, to see what responses I get, but it's seeming pretty likely that rather than start with the easier case, I managed to start with the most difficult case.
    My usual boring signature: Nothing

  4. #4
    Fanatic Member Delaney's Avatar
    Join Date
    Nov 2019
    Location
    Paris, France
    Posts
    845

    Re: Bluetooth Bait and Switch

    In my application, I get access to my Bluetooth device through a serial COM port. don't know if you can do the same on android
    The best friend of any programmer is a search engine
    "Don't wish it was easier, wish you were better. Don't wish for less problems, wish for more skills. Don't wish for less challenges, wish for more wisdom" (J. Rohn)
    “They did not know it was impossible so they did it” (Mark Twain)

  5. #5

    Thread Starter
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    39,028

    Re: Bluetooth Bait and Switch

    I've been pursuing a variety of different approaches. At this time, I'm pulling back a bit, because there are a couple commercial solutions that are looking likely. That'll work or fall apart in the next week, at which point I might be looking into this again. It appears that there is an experimental Bluetooth API that has been around for about a decade and looks viable. Unfortunately, there would remain one further issue, but we'll burn that bridge when we get to it.
    My usual boring signature: Nothing

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width