Skip to content

Instantly share code, notes, and snippets.

@lol768
Created November 29, 2014 18:00
Show Gist options
  • Save lol768/f44b4cb34c7ee8f22aa8 to your computer and use it in GitHub Desktop.
Save lol768/f44b4cb34c7ee8f22aa8 to your computer and use it in GitHub Desktop.

Streaming the CASIO fx-9860GII's screen with Ubuntu 14.04

A while back I got an fx-9860GII calculator. The model is a graphical, programmable calculator which is based on the SH architecture (it's an SH-3 CPU running at ~15 MHz). I stumbled upon some development tools over on SourceForge which included a tool for displaying a live view of the calculator's screen. I spent a little while getting the tool to work on Ubuntu 14.04 (it was originally developed in 2007 although the wiki was updated last year) and I'm making this a public gist in case anyone else wants to get this working.

There's a lot of documentation on the calculator and how it works here. CASIO have released an SDK available to those who own the calculator but it only works on Windows and I haven't had much luck getting the development tools to work in WINE. My understanding is that applications can be developed on GNU/Linux systems using the other code in the SourceForge project linked above but this isn't something I've looked into yet.

To get started, run the following commands. I've included the subversion package because I'd never used SVN on this distro (I usually use git). It'd be nice to see a GitHub mirror at some point.

sudo apt-get install qt4-qmake libqt4-dev libusb-1.0-0-dev subversion
svn checkout svn://svn.code.sf.net/p/fxsdk/code/ fxsdk-code
cd fxsdk-code/screenstreamer/trunk/
qmake-qt4
make
sudo ./screenstreamer -style gtk

(Yes, I know you shouldn't use sudo for graphical applications. I've tried gksudo and kdesudo here to no avail - right now the above does the job.)

The next step is to turn on the calculator. In the menu, select the LINK item and ensure the cable type is set to USB and Capture is set to the screen receiver.

settings

Return to the main menu. Now, plug in the mini USB cable and hit F4 for "ScreenRecv". Now, close the "Configure ScreenReceiver settings." dialog with the EXIT key and click connect in the GUI. In some cases it took me a few attempts to work.

Once connected, you should see the calculator's current screen. The image will automatically update as you use the calculator. Aside from some add-ins (see below) all parts of the calculator appear to be able to be streamed.

Normal distribution plot

Using the screen receiver appears to slow down the calculator which can impact some applications. You may find some custom add-ins cause the connection to halt or exhibit strange behaviour. Here's snake which seems to work okay:

Snake

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment