erpc
bakelite
erpc | bakelite | |
---|---|---|
2 | 3 | |
668 | 19 | |
1.9% | - | |
6.8 | 0.0 | |
8 days ago | over 1 year ago | |
C++ | C++ | |
BSD 3-clause "New" or "Revised" License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
erpc
-
Protocol on top of USB HID
I would love to see the kind of HID solution that you describe paired with a proper strongly typed message format like eRPC. In previous searches for similar messaging, I have also found things like EmbeddedProto and nanopd. I never got to dive into the details on any of these, though.
-
Does anyone have a protocol for the communication between microcontroller and PC?
I've seen people mention Messagepack, Asn.1 and Nanopb, which are data serialization libraries. Since in your example you mention that your protocol is like {START_COMMAND} {MODE_BYTE} {MODE_LENGTH} {MODE_DATA} I suppose that what you want is not only to transmit data, but also commands. I believe that RPC (Remote Procedure Call) is what you're looking for. Unfortunately I haven't found any really mature and well-known RPC frameworks for embedded. There is eRPC, but it is not so actively maintained. The RPC module from Pigweed, a embedded toolkit from Google, looks promising but IMHO it's a work in progress (especially the documentation is quite lacking).
bakelite
-
Is there a way to have Arduino execute commands that it received serially?
If you want to explore the custom protocol approach, you might be interested in this library I wrote. It helps automate the tedious bits of building your own protocol: https://github.com/brendan0powers/bakelite
- Show HN: Bakelite – making it easier to communicate with your firmware
-
Does anyone have a protocol for the communication between microcontroller and PC?
Here's a link: https://github.com/brendan0powers/bakelite An Arduino/Python example: https://github.com/brendan0powers/bakelite/tree/master/examples/arduino
What are some alternatives?
ice - All-in-one solution for creating networked applications with RPC, pub/sub, server deployment, and more.
bitproto - The bit level data interchange format for serializing data structures (long term maintenance).
protobuf - Protocol Buffers - Google's data interchange format [Moved to: https://github.com/protocolbuffers/protobuf]
mscharconv - <charconv> from Microsoft STL, but multi-platform
areg-sdk - AREG is an asynchronous Object RPC framework to simplify multitasking programming by blurring borders between processes and treating remote objects as if they coexist in the same thread.
eRPC - Efficient RPCs for datacenter networks
FlatBuffers - FlatBuffers: Memory Efficient Serialization Library
fprime - F´ - A flight software and embedded systems framework
bomba - C++ library for convenient implementation of RPC and serialisation
cppbor - An implementation of cbor using C++ 17 variants
indicators - Activity Indicators for Modern C++