Hi,
This is probably slightly OT, but I am using Pduino and I guess some of you can help me find complete documentation about Firmata, especially about how the StandardFirmata firmware is expected to work.
For example I was looking for the details of how the "set pin mode" message works, and I've not been able to find them. At arduino.cc I only found the reference of the Arduino's pinMode() function, while at firmata.org the most I could find was:
state(0=in)
without even a list of existing pin modes.
I guess there must be some documentation somewhere that explains the semantics of each Firmata message and how exactly the StandardFirmata firmware is expected to behave in response to each message...
Thanks m.
Firmata is trying to emulate the Arduino API. Otherwise there is http://firmata.org
and then each project that implements Firmata listed on the
downloads page of Firmata.org.
.hc
On May 21, 2011, at 10:24 AM, Matteo Sisti Sette wrote:
Hi,
This is probably slightly OT, but I am using Pduino and I guess some
of you can help me find complete documentation about Firmata,
especially about how the StandardFirmata firmware is expected to work.For example I was looking for the details of how the "set pin mode"
message works, and I've not been able to find them. At arduino.cc I
only found the reference of the Arduino's pinMode() function, while
at firmata.org the most I could find was:
- set pin mode(I/O) 0xF4 pin # (0-127) pin
state(0=in)
without even a list of existing pin modes.
I guess there must be some documentation somewhere that explains the
semantics of each Firmata message and how exactly the
StandardFirmata firmware is expected to behave in response to each
message...Thanks m.
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Looking at things from a more basic level, you can come up with a more
direct solution... It may sound small in theory, but it in practice,
it can change entire economies. - Amy Smith
On Jun 6, 2011, at 5:08 PM, Matteo Sisti Sette wrote:
On 06/06/2011 10:55 PM, Hans-Christoph Steiner wrote:
Firmata is trying to emulate the Arduino API.
I'm confused. What do you mean by the Arduino API? Or maybe what do you mean by "emulate"?
I thought Firmata _was_ a kind of Arduino API.
See the functions in the Arduino reference:
http://www.arduino.cc/en/Reference/HomePage
.hc
You can't steal a gift. Bird gave the world his music, and if you can
hear it, you can have it. - Dizzy Gillespie
On 06/06/2011 11:26 PM, Hans-Christoph Steiner wrote:
See the functions in the Arduino reference:
As far as I understand, those functions and their pin modes are not directly related to Firmata's pin modes.
The function pinMode(), for example, has only two modes, INPUT and OUTPUT. On the other hand the Firmata message that sets the pin mode can set it to input, output, pwm or servo (I may be forgetting some), where pwm and servo don't correspond to modes of the pinMode() function but rather to calling other functions (or a series of function calls to set up a pin to work in a given mode).
As far (again) as I understand the Standard Firmata is a firmware with a given behavior, which is something more (or at a higher level) than a 1-to-1 map to given functions of Arduino's programming language, and my question was where is that behavior documented in some detail.
I see an arduino with a Standard Firmata firmware as a machine that has a given (expected) behavior, and I wonder where I am supposed to find detailed documentation of that behavior. Or I see it as a machine implementing an API, and then I wonder where that API is documented. If all the available documentation is at http://www.firmata.org/wiki/Protocol then I guess there's still some work to be done.
If the Firmata protocol was just some sort of wrapper around Arduino's functions (that is, each given Firmata message corresponded to a given Arduino function and had the same parameters) then i would be able to find all the details in the documentation of Arduino functions, but that is not the case....
Maybe the documentation I'm looking for simply doesn't exist (yet) because the information i would expect it to contain is probably rather intuitive/obvious for someone who already knows all the internals of the Arduino. I simply thought that couldn't be the case, because there are so many implementation of "the other side of the API" (i.e. software libraries talking TO the arduino that is running Firmata) that I thought it would be impossible for anybody to have written any of them if the arduino's behavior (or the API) wasn't thoroughly documented.
Thanks m.