Giter Site home page Giter Site logo

Bluetooth? about ta.reactivecommunications HOT 1 CLOSED

JPhilC avatar JPhilC commented on August 25, 2024
Bluetooth?

from ta.reactivecommunications.

Comments (1)

NameOfTheDragon avatar NameOfTheDragon commented on August 25, 2024

I thought I would ask if you believe this would be possible or would I be wasting my time.

Thanks for looking at RxComms. I'm probably a bit late responding to this and I've only just seen it.

All of the implementations I've done have been between the driver and the device, but I don't see any reason why this wouldn't work on the driver side. From the driver's perspective, if you treat your Bluetooth connection as a ICommunicationsChannel then you can use what I call the Asynchronous Model to parse your input stream and hook it up to the right code. This seems not completely different to how I added the hardware simulator into the Digital Domeworks driver. In that situation, I wrapped all the simulation code in a custom implementation of ICommunicationsChannel, called SimulatorCommunicationsChannel. In your case though, you might even get away with just using the built-in serial implementation if your Bluetooth connection can be made to "look like" a serial port.

Another approach to consider is to make your ASCOM driver support the Alpaca interface, which gives it a REST API, in effect. You can then have your control app work over WiFi or cellular networks. You could also pass the Alpaca requests via Bluetooth for times when there's no network available but you might have to implement some sort of rudimentary network layer, possibly with some help from RxComms on the driver side, to help with handling the requests.

It's a broad question and sometimes the devil is in the details, so it's hard to give concrete answers. RxComms is very flexible if you can bend your mind into the right paradigm so I have no doubt it could be made to work.

Hope that helps,
Tim

from ta.reactivecommunications.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.