Comments (10)
@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.
@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.
@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.
@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.
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.
That would be great! 😄
from iot.
@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.
@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.
[Triage] How should do APIs look like for this?
from iot.
[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)
- GPIO driver should add batch write and read function HOT 1
- Build fails running Build.cmd at RGBLedMatrix/samples/Program.cs - CS4014 HOT 1
- MCU support HOT 10
- Support for I2C flags to hold SDA low (Unix) HOT 1
- Missing commonly required options in new Camera module HOT 1
- OperationCanceledException causes libcamera not to be closed properly
- "Error 13 initializing the Gpio driver" with .NET 8 in rootless container HOT 31
- libgpiod v2 support HOT 5
- ILi9341 on Raspberry Pi 4 HOT 6
- Raspberry Pi4 running WIndows 11 - GPIO HOT 8
- Raspberry Pi 3A+ Board Revision 1.1 is not detected/supported during GpioController construction HOT 2
- Jitter on PIN Rising and Falling on GPIO Pin callback HOT 8
- Creating the documentation with the essential knowledge (or links)
- Raspberry Pi 5 -> GPIO Package Can it Support as of Today ???? HOT 9
- Dht11, Dht22, no result in RaspBerry Pi5 HOT 7
- Improve library detection algorithm in LibGpiodDriverFactory HOT 2
- Check alternatives to exposing LibGpiodDriverVersion enum
- GPIOController (PinChangeEventHandler): Assigning a PinChangeEventHandler callback or Controller.OpenPin() causes "Segmentation Error" HOT 20
- If define a PWM Output on , eg GPIO18 (pin12), Does it create a ValueChanged Event if I enable this ? HOT 6
- [Test Issue] GitHub Automation Testing HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iot.