Comments (1)
FirmataIOクラスのsetConfigurationメソッドの最後で、コンフィグ�
��に各ピンの値を通知する
ようにしていた。ここで、Arduinoの場合にはモジュール1個(
IDは0)しか通知していなかった
が、FIOの場合にはブロードキャストを意味する0xFFFFに対し��
�このメソッドが呼ばれるのが通
常である。
しかし、各ピンの値を収めるための配列は65535個しか用意さ
れておらず、0xFFFFで65536番目
の要素にアクセスした際、範囲外へのアクセスになって動��
�が停止、結果的にタイムアウトし
てしまっていた。
そこで、FirmataIOクラスを継承するArduinoIOクラスとFunnelIOクラ
スでこのメソッドをオー
バーライドし、FunnelIOに関してはNode
Discoveryコマンドで検出されたノードについての
み、各ピンの値を通知するようにした。
http://code.google.com/p/funnel/source/detail?r=516#
なお、この動作はデジタルピンを入力(DINまたはIN)に設定
した場合のみ発生するため、今回
の問題が起きるまで潜伏していたものと思われる。
Original comment by [email protected]
on 15 Nov 2008 at 6:18
- Changed state: Fixed
- Added labels: Component-Server
- Removed labels: Component-Ruby
from funnel.
Related Issues (20)
- digital pin reporting in Firmata v2 won't work as expected
- action-coding stops responding a typo HOT 2
- Sketches won't exit by hitting a Esc key HOT 1
- Processing library won't work with XBee modems HOT 1
- Processing lib crushes HOT 1
- From a 2nd run, a first pair of button press/release is ignored HOT 1
- 長さが256以上のパケットを受け取れない HOT 2
- "Stream Error" occurs when try to run XBeeTest with Flash CS4
- Some I2C devices have register addresses > 0xFF
- Want to know the RSSI for an end device
- rev 768 seems that com.illposed.osc.* classes were not compiled in latest build HOT 5
- bug in Potentiometer.as HOT 1
- Gainer.MODE7 on processing
- HI ! I have a big problem with my photoresistor ... Help me please ! HOT 1
- Don't try to open a Bluetooth port when the last serial port was not found
- trying to connect a picaxe08m2 controller .... HOT 2
- Processing Llibrary broken with funnel release 801
- add maxPWMValue to Pin object HOT 1
- add analogNumber getter to Pin object HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from funnel.