Register

Using XFER9860 on new calc

Discuss issues related to the fx-9860G Software Development Kit
Junior Member
User avatar
Posts: 7
Joined: Sat Sep 07, 2013 1:51 am
Location: The Land Down Under
Calculators: Casio fx-9860G AU PLUS

Using XFER9860 on new calc

Postby RunasSudo » Mon Sep 09, 2013 8:34 am

(sigh, me again. I thought programming on Linux was supposed to be easier)
Background Information:
I am running Ubuntu Linux 12.04.2 amd64, compiling and building my programs using the method described on the UsingGCC page on the fxSDK wiki (I compiled my own sh3eb-elf-gcc).

My calculator is an fx-9860G AU PLUS (Australian version of the GII), Power Graphic 2.

Problem:
My problem is that xfer9860 (v0.2.1) doesn't work.
Code: Select all
# ../tools/xfer9860 -u MAIN.G1A MAIN.G1A
--- xfer9860 v0.2.1  Copyright (C) 2007 Andreas Bertheussen and Manuel Naranjo.
[I] Found file: MAIN.G1A
[I] File size:  968 byte(s)
[>] Setting up USB connection.. Connected!
[>] Verifying device.. ERR: ReadUSB(): Could not read: -110
Failed.


By modifying T_POSITIVE to be 0x05 and replacing the ReadUSB function with:
Code: Select all
int ReadUSB(struct usb_dev_handle *usb_handle, char *buffer, int length) {
   int ret = 0;
   int BytesRead = 0 ;

   ret = usb_bulk_read(usb_handle,0x82,buffer,length, USB_READ_TIMEOUT);
   printf ("DBG %i\n", fx_getPacketType(buffer)); //debug code, just ignore this
   while (fx_getPacketType(buffer) != 0x05) {
       ret = usb_bulk_read(usb_handle,0x82,buffer,length, USB_READ_TIMEOUT);
    }

   if (ret < 0) { printf("ERR: ReadUSB(): Could not read: %i\n", ret); }
   debug(1, buffer, ret);
   return ret;
}

I have gotten as far as:
Code: Select all
# ../tools/xfer9860 -u MAIN.G1A MAIN.G1A
--- xfer9860 v0.2.1  Copyright (C) 2007 Andreas Bertheussen and Manuel Naranjo.
[I] Found file: MAIN.G1A
[I] File size:  968 byte(s)
[>] Setting up USB connection.. Connected!
[>] Verifying device.. DBG 5
Done!
[>] Requesting fls0 capacity.. DBG 1

And then it hangs.

Using if instead of while yields:
...
[>] Verifying device.. DBG 5
Done!
[>] Requesting fls0 capacity.. DBG 1
ERR: fx_getFlashCapacity: no proper response

[E] Error requesting capacity information.


Is there a patched/newer version of xfer9860 available, or another program I could use? (FA-124 apparently doesn't work under WINE)

Senior Member
User avatar
Posts: 605
Joined: Sat Sep 15, 2012 6:59 am
Location: Krautland ****
Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750GII, Casio fx-9750GII (SH4), Casio fx-9860G, Casio fx-9860G SD, Casio fx-9860G Slim, Casio fx-9860GII SD, Casio fx-9860GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG20, Casio fx-CG50, Casio Classpad fx-CP400

Re: Using XFER9860 on new calc

Postby SimonLothar » Mon Sep 09, 2013 9:02 am

I didn't hear of Andreas Bertheussen for 3 or 4 years. I think Manuel Naranjo retired from the fx-thing even earlier.

I work with windows.
You could try FX9860G fileconverter 1.06.
But you need the driver CESG502.sys, which should have been installed with FA-124.
I'll be back!

Junior Member
User avatar
Posts: 7
Joined: Sat Sep 07, 2013 1:51 am
Location: The Land Down Under
Calculators: Casio fx-9860G AU PLUS

Re: Using XFER9860 on new calc

Postby RunasSudo » Mon Sep 09, 2013 9:28 am

If nothing's available I guess I'll have to make my own program (again) from fxReverse documentation (again) and trial-and-error.

Free software win, I guess?? (by increasing competition and choice???)

Senior Member
Posts: 100
Joined: Sun Mar 24, 2013 12:01 pm
Calculators: None

Re: Using XFER9860 on new calc

Postby TeamFX » Tue Sep 10, 2013 12:40 pm

Have a look here: viewtopic.php?f=11&t=1530

Return to Casio fx-9860 SDK

Who is online

Users browsing this forum: No registered users and 28 guests