Open PizzaProgram opened 3 years ago
Ciao @PizzaProgram for sure SoftwareBitBang strategy fits in your requirements, some users did use PJON along with Node-Red, although we have not prepared a ready made example.
Consider that PJON runs also on a real operative system, so you could:
( Thanks for the quick answer! I was investigating everything during the last 14 hours before answering. )
It's not clear yet, which one would be the best solution. With ThroughSerial I'm back at the beginning. (What happens if the COM port is taken / can not reconnect / changes from "..USB0" to "USB1" ... )
I've thought MQTT would be best solution, but I don't see how, if connected with USB to the RPi. ( Normally in my thought there would be a gateway program that converts PJON protocol to MQTT messages running on RPi? )
What I still not find is the "server / service" program that can be installed to the RPi side, as master to handle the incoming PJON slaves.
Also it's not clear looking at the example codes, why is Serial.begin(9600);
used? Is that the max speed?
Is it possible to give NAMES to the firmwares? Or Device-ID (+ MAC) only ?
SWBB_MODE = 4
is the max speed? ( If using 5m/1.8m good quality shielded USB cable. ) 3.34kB/s seems to be too few.
To quickly transfer multiple analogue values measured from multiple boards while still need to responding to IO ports immediately, how many bits gets totally transferred?
8 analogue (x16 bit) + 10 IO states + CRC8 + overhead = 150 x every 0.1 sec = 1500baud / board
That's max 18 Arduino NANO / bus if used all ports. Right?
Thank you!
I'm sharing my thought to show how a "newcomer" sees and searches things first visiting your project. It may help to build a FAQ page from my questions later.
PS: Of course I'll donate if it works. (I like if people pay for me for my help > so it's obvious I usually do the same) .
I've also found this:
https://github.com/Halytskyi/PJON-gRPC/tree/master/examples/devices/two_routers Which seems to be a bit overkill to waste +2 boards just as gateways, but promising.
And there is a gRPC node for Node-RED: https://flows.nodered.org/node/node-red-contrib-grpc
Ciao @PizzaProgram
SWBB_MODE = 4
is the fastest mode of SoftwareBitBang, which is an implementation of PJDL or a single wire communication protocol I have designed in the last decade with the help of few friends, unlike serial it can cross 2km of twisted pair, and up to 255 devices can share the same wire for communication along with a ground connection, it is slower than serial because it is optimized for a different use case, depending on the MCU you use you could achieve higher speeds at the cost of a lower maximum range.@PizzaProgram see also https://www.youtube.com/watch?v=GWlhKD5lz5w
I agree with you that https://github.com/Halytskyi/PJON-gRPC may be a quick solution to link node red with PJON.
Thank you for your support, I will for sure make use of your valuable feedback :)
I've accidentally found this project and I'm amazed by it at first view. Spent 600 working-hours during last 1 year to search for a :
I've also learned after 8 month, that 75% of the people who wants to do the same turn to NodeRed . But currently there is NO STABLE SOLUTION to connect all kinds of these things!
Would it be possible to use PJON from Node-Red?