Giter Site home page Giter Site logo

Virtual devices & signalr about iot HOT 10 CLOSED

dotnet avatar dotnet commented on June 17, 2024
Virtual devices & signalr

from iot.

Comments (10)

grahamehorner avatar grahamehorner commented on June 17, 2024 1

@joperezr I'd be happy to do a proof of concept for a virtual GPIO based around signalr/websockets; to see if this is possible and/or is a good fit for the developer inner loop/testing without the need for hardware.

from iot.

shaggygi avatar shaggygi commented on June 17, 2024 1

@krwq @joperezr I've started playing with this repo (Project TIOT). It's basically a dumping ground for me trying to learn about related topics. However, it might help with this issue. It is still "very" early, but looks promising. I was already able to perform many of the GPIO-related features and was successful communicating with I2C (but is far as I got for now). There is a basic example using with a WPF app, as well.

If it gains traction/support, it might be a good idea to move over to the tools section.

Again, this is nothing more than a playground for myself learning topics and repo could be removed at some point. Just thought you might be interested.

Much more to do as time allows. 🎉

from iot.

krwq avatar krwq commented on June 17, 2024 1

@shaggygi perhaps you could use Firmata to do stuff remotely: #262 - I bet same stuff will work for Pi and Arduino.

For many scenarios TCP connection will do but in some cases you might have to send a program which executes remotely (I don't know if firmata has capabilities like that but might be worth taking a look since it seems it has similar goals in mind)

from iot.

shaggygi avatar shaggygi commented on June 17, 2024 1

@krwq Thanks for the link. I had not come across that one yet. It seems this is the same concept I'm trying to do with TIOT, except Firmata appears to use serial/USB (which is still a good idea) instead of gRPC & Ethernet. I'll try to read over the content/topic. Thx

from iot.

joperezr avatar joperezr commented on June 17, 2024

I agree that having this would be great. TBH I'm not super familiar with SignalR so I don't know how costing would look like to have this, but it would definitely help inner-loop and validation since you would be able to have tests without relying on the hardware.

from iot.

joperezr avatar joperezr commented on June 17, 2024

That would be great! 😄

from iot.

grahamehorner avatar grahamehorner commented on June 17, 2024

@joperezr I've start looking into this and I'm building up a set of IObservable and IObserver classes that will represent the physical components within a circuit and the voltage/current etc.

FYI, I'm looking to have a basic ADC virtual circuit working by mid/end of next week; I'm dug out an olde copy of a book I had used many year ago Electronic Circuit & System Simulation Methods (SRE) by Lawrence Pillage

from iot.

krwq avatar krwq commented on June 17, 2024

@shaggygi if we decide to implement it, might be worth to just depend on Stream and then you can either pass a serial stream or tcp/other stream depending on what you need (perhaps we can have an overload which uses serial by default as well but stream should be main API).

I haven't looked into Firmata yet though to give you any opinions on the subject (it was somewhere on my todo list but probably won't have time for that for a while)

from iot.

krwq avatar krwq commented on June 17, 2024

[Triage] How should do APIs look like for this?

from iot.

Ellerbach avatar Ellerbach commented on June 17, 2024

[Triage] We now have multiple way of doing this:
-Arduino with Firmata support

  • FT4222 thru USB
  • For tests, we have multiple example of mocking up SPI, I2C devices.

Question is: is this issue still valid?

from iot.

Related Issues (20)

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.