-
-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TinyProtocolStream - encapsulate tinyproto into Arduino Stream for ease of use #24
Comments
Hi Louis, I'm sorry for the late reply, was too busy.
Yes, it is the good idea to integrate your changes to tinyproto library. However, we need to be very careful, since the tinyproto library is used not only in Arduino environment.
Absolutely agree with you, I have idea to capture the protocol statistics, and to make it available via some API for a applications.
The library does not have any stress tests for now, but it have numerous checks for each commit.
But both these checks must be as quick as possible (CircleCI has limit of 10 minutes for the operation).
No, I don't have that one. I have ESP32, which allows to implement similar setup. But it is not the problem, I can order Teensy boards from Aliexpress (it will take some time before the boards will be delivered). All I need to know is description of your setup, maybe some picture of how the boards are inter-connected. |
Glad to hear you're interested in integrating this new feature into tinyproto. Although there is still work to be done (listed in the "TODOs" section in the README on my fork), it's currently functional enough to test and to discuss how to integrate it. Please let me know your thoughts when you've taken a look. If you don't have a Teensy it's not necessary to get one, I just think it's convenient for debugging as it has multiple USB and hardware serial ports, and compiling and programming is very fast. I used a Teensy 4.1 for my testing, but a Teensy 4.0 should work just as well. A Teensy 3.2/3.5/3.6 probably would work well if it's easier to source. They're manufactured in the US and their list of worldwide distributors is available here: I also have multiple ESP32s, but so far have only tested tinyproto on a single ESP32 connected to a Teensy 4.1. I don't think pictures are necessary, I just have three wires for GND/TX/RX connected between the two boards. |
I need a reliable Serial connection between two Arduinos, and found your project. I created an Arduino Stream class that inherits from
IFd
and it's getting close to reliable at high throughput as tested through a loopback test running between two Teensy 4.1s.https://github.com/embedded-creations/tinyproto/tree/stream
Take a look at this example to see how simple it is to use (just a few lines reference tinyproto in the sketch, and the API is nearly identical to a Stream object like Serial which makes it easy for a new user):
https://github.com/embedded-creations/tinyproto/blob/stream/examples/arduino_generic/TinyProtocolStreamTest/TinyProtocolStreamTest.ino
Some questions:
FdStream
in the library once it's finished?getStatus()
method to accesstiny_fd_get_status()
, but beyond that I'd like to know if I lost any data so I can reset the protocol running on top of tinyproto.The text was updated successfully, but these errors were encountered: