ID (hex) Usage00 Request the version of the protocol
"T01N00I12PffQ21" .... Easy to read (mainly because of the delimiters)
Command Format: 1. general msg: "*a:<cmd>;<cmd><CR>", where '*' = header_char, 'a' = node_address(1,2,3...), ';' delimits the commands, and <CR>=carriage return. 2. <cmd>: "c<arg1>,<arg2>,...", where 'c'=command_character, and <args> = signed-integers. 3. example: "*4:a2;s1,-45;g;m64,128<CR>" means attention node=4, read analog 2, set servo 1 = -45 degrees, read GP2D12 sensor, and set motor speeds(left,right) = 64 and 128.
I have checked Firmata, but as far as I understand its main goal is to replicate the low-level Arduino API on the PC side.
I have checked Firmata, but as far as I understand its main goal is to replicate the low-level Arduino API on the PC side.From the Firmata site: The aim is to allow people to completely control the Arduino from software on the host computerFor example: send the result of "AnalogRead" over the serial port when the PC requests this value.set the PWM value for the analog output pinsSince this would really lower the maximum sampling rate, this approach does not fit all possible applications.Our goal is to implement "high level messages" to share information that might be based on the data of multiple sensors. (or multiple devices in a wireless sensor network)For example: This is the current temperatureRoom x is currently not occupiedRemote controlled car has entered room x