Videos and reviews

Archiv rubriky ‚SDK – FAQ’

Is it possible to communicate with cube outside RFC?

SDK - FAQ | 16. 08. 2013 | Comments Off

Yes, if you connect the cube to computer via USB cable, virtual serial comport become available and it provides simple prompt shell, echo is initially switched off! Simply press few times enter to get answer. Do not forgot to switch off flow control, speed is not important! For all available commands search in SDK manual. Remember, that RFC uses multiplex protocol and it is automatically set up when cube connects first time to RFC. If you would just close RFC, than the multiplex keeps running. To switch back for simple mode, simply cycle USB cable.

Přečíst článek

Is it possible to use data from CUBE and control LEDs?

SDK - FAQ | 25. 09. 2013 | Comments Off

Yes, cube shell (connection is described above) offers several commands for retrieving data from accelerometer and commands for full control of all LEDs. Read the SDK manual for more information, commands of interest are: “clr, pled, pleds, pledarr, motion”. Motion is a special command that sends in frequency 125 Hz state information from game state machine. That means not only raw accelerometer data, but for example as well recognized taps.

Přečíst článek

How shell can communicates with scripts?

SDK - FAQ | 25. 09. 2013 | Comments Off

FW 4.5 allows to use command “prunf N”, which starts automatically script on N-th position. Future version should be able to start any scripts via its name if present. Also SDK implements standard function “printf(…)” which outputs formatted text to shell line. So this output, even originally designed as debug function, can be parsed by external program. At this moment there is no line that would allow to send message to the script, but it is planned for next update.

Přečíst článek