Skip to content
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

unsupported mode '2' for pin '15' at ../lib/Device/Firmata/Platform.pm line 823. #15

Open
bcarroll opened this issue Sep 11, 2013 · 1 comment

Comments

@bcarroll
Copy link
Contributor

examples/test.pl is producing an error "unsupported mode '2' for pin '15' at ../lib/Device/Firmata/Platform.pm line 823."

This test was done using an Arduino Mega 2560 R3 and the StandardFirmata sketch included with Arduino 1.0.5.

I did not get this error with an Arduino Nano v3.

The firmata.org WIKI mentions changing the samplingInterval to 99 to support all pins on the Arduino Mega, but I thought that had been included in the newer versions of the StandardFirmata sketch.

@bcarroll
Copy link
Contributor Author

looks like samplingInterval is set to 19 by default.
int samplingInterval = 19; // how often to run the main loop (in ms)

I changed it to 99, but the results are very different.

Results with samplingInterval=19;
C:\perl-firmata-dev\examples>test.pl
>f0,79,f7
<f0,79,02,03,53,00,74,00,61,00,6e,00,64,00,61,00,72,00,64,00,46,00,69,00,72,00,6d,00,61,00,74,00,61,00,2e,00,69,00,6e,00,6f,00,f7
< START_SYSEX
< DATA_SYSEX
< END_SYSEX
>f0,6b,f7
<f0,6c,7f,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,06,01,7f,00,01,01,01,04,0e,06,01,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,7f,00,01,0
< START_SYSEX
< DATA_SYSEX
< END_SYSEX
>f0,69,f7
<f0,6a,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,00,01,02,03,04,05,06,07,08,09,0a,0b,0c,0d,0e,0f,f7
< START_SYSEX
< DATA_SYSEX
< END_SYSEX
>ff
>f0,79,f7
<f0,79,02,03,53,00,74,00,61,00,6e,00,64,00,61,00,72,00,64,00,46,00,69,00,72,00,6d,00,61,00,74,00,61,00,2e,00,69,00,6e,00,6f,00,f7
< START_SYSEX
< DATA_SYSEX
< END_SYSEX
>f0,6b,f7
<f0,6c,7f,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,06,01,7f,00,01,01,01,04,0e,06,01,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,7f,00,01,0
< START_SYSEX
< DATA_SYSEX
< END_SYSEX
>f0,69,f7
<f0,6a,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,00,01,02,03,04,05,06,07,08,09,0a,0b,0c,0d,0e,0f,f7
< START_SYSEX
< DATA_SYSEX
< END_SYSEX
>d1,01
>f4,0b,01
>d1,01
>f4,0c,00
unsupported mode '2' for pin '15' at ../lib/Device/Firmata/Platform.pm line 823.

Results with samplingInterval=19;
C:\perl-firmata-dev\examples>test.pl
>f0,79,f7
>f0,79,f7
>ff
>f0,79,f7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant