Register

Protocol 7.00 - Error 0x04 and tests

Discuss issues related to Calculator Hacking/Modding.
Senior Member
User avatar
Posts: 101
Joined: Sun Mar 27, 2016 10:24 am
Location: France
Calculators: Casio Afx 1.0, Casio fx-9860GII, Casio fx-CG50

Re: Protocol 7.00 - Error 0x04 and tests

Postby cakeisalie5 » Fri Sep 23, 2016 7:05 pm

Yup, the complete list is model.txt, but it hasn't got the last characters sent by Protocol 7.00 (and I can't deduce them as "it seems to be inconsistent among all models..."). So thanks, I'll use these! Can I have the OS ones too please ? :P

(here's the current list of environments)
(and I've got the same with my SH4 calculator. they are shameless xD)
Part of the Planète Casio community (FR) - main author of Cahute

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

Re: Protocol 7.00 - Error 0x04 and tests

Postby TeamFX » Sat Sep 24, 2016 9:07 pm

Hardware ID (8-chars identifier, like "Gy363007")

My Graph 35+ E returns "Gy36200F" via LINK/receive...
I have no clue what that last character means.

Senior Member
User avatar
Posts: 101
Joined: Sun Mar 27, 2016 10:24 am
Location: France
Calculators: Casio Afx 1.0, Casio fx-9860GII, Casio fx-CG50

Re: Protocol 7.00 - Error 0x04 and tests

Postby cakeisalie5 » Sat Sep 24, 2016 10:50 pm

Well in fact, some sort of pattern comes out with the codes I've got. It's not a complete list, but here's what I found for now :

https://bible.planet-casio.com/cakeisal ... odels.html

(topic on planète casio)
Part of the Planète Casio community (FR) - main author of Cahute

Member
Posts: 46
Joined: Wed Jul 24, 2013 3:33 am
Calculators: Casio fx-7400GII (SH4), Casio fx-9750GII (SH4), Casio fx-9860GII SD, Casio Classpad 330, Casio fx-CG50, Casio Classpad fx-CP400

Re: Protocol 7.00 - Error 0x04 and tests

Postby critor » Mon Jan 02, 2017 8:16 pm

TeamFX wrote:
Hardware ID (8-chars identifier, like "Gy363007")

My Graph 35+ E returns "Gy36200F" via LINK/receive...
I have no clue what that last character means.


To make things simple, in receive mode :
Gyxxx006 = SH3
Gyxxx007 = SH4 without exam LED / SH4 with exam LED and OS 2.02-2.04
Gyxxx00F = SH4 with exam LED and OS 2.05-2.09
Gy362xxx = OS Graph 35+/fx-9750GII
Gy363xxx = OS Graph 75/95//fx-9860GII

Tested on Graph 35+SH3, Graph 35+SH4, Graph 35+E, Graph 95 SH3 and Graph 75+E with all compatible OS images available. ;)

Senior Member
User avatar
Posts: 101
Joined: Sun Mar 27, 2016 10:24 am
Location: France
Calculators: Casio Afx 1.0, Casio fx-9860GII, Casio fx-CG50

Re: Protocol 7.00 - Error 0x04 and tests

Postby cakeisalie5 » Sun Apr 30, 2017 6:19 pm

By the way, what is the maximum (normal) command argument size the OS accepts? The encoding means it can go to 256, but as the typical maximum is something around 16, does LINK accept command arguments above this? (or, worse, does this cause a buffer overflow?)
Part of the Planète Casio community (FR) - main author of Cahute

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: Protocol 7.00 - Error 0x04 and tests

Postby SimonLothar » Mon May 01, 2017 8:14 am

cakeisalie5 wrote:By the way, what is the maximum (normal) command argument size the OS accepts? The encoding means it can go to 256, but as the typical maximum is something around 16, does LINK accept command arguments above this? (or, worse, does this cause a buffer overflow?)
If you mean the command parameters D1..D6 (fxReverse, chapter 4.3.1), the maximum size for every single parameter is 0xFF indeed. Theoretically.
But the responsibility for interpreting the various parameter sets lies at the specific protocol 7.00 command.
Concering the basic transfer buffers the max. transmit buffer size is 256 bytes and the max. receive buffer size is 1024 bytes.
There is no OS-defined command, which needs arguments, which could possibly violate these limits.

If you want to implement your own commands, you have to heed for the size of the basic transfer buffers.
There is a risk to overrun the receive buffer, if you send more than 1024 bytes without a software handshake (F. i. ACK-packet) between.
I'll be back!

Senior Member
User avatar
Posts: 101
Joined: Sun Mar 27, 2016 10:24 am
Location: France
Calculators: Casio Afx 1.0, Casio fx-9860GII, Casio fx-CG50

Re: Protocol 7.00 - Error 0x04 and tests

Postby cakeisalie5 » Mon Jun 19, 2017 11:34 pm

Sorry for not being very active here, I'm struggling to finish writing libcasio as fast as I can, while I can. I'm still trying to make libcasio (libp7 and libg1m, protocols and file formats management, are being merged into this library), and I'm struggling a little.

I am currently making a stream abstraction implementation above Protocol 7.00 data flow, and was wondering: how do calculators react to unordered data packets? Is there a way to interrupt the current flow without interrupting the hole communication, in "basic" Protocol 7.00 (I've seen the "modified" Protocol 7.00 fxRemote's update.exe uses)? In case of unordered data packets, should a server accept it and store it, or interrupt the data flow/communication? Thanks in advance! :)
Part of the Planète Casio community (FR) - main author of Cahute

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: Protocol 7.00 - Error 0x04 and tests

Postby SimonLothar » Tue Jun 20, 2017 4:05 pm

cakeisalie5 wrote:..In case of unordered data packets, should a server accept it and store it, or interrupt the data flow/communication?
I do not think, that you have to support non-consecutive data packets.
I'll be back!

Previous

Return to Calculator Hacking/Modding Discussions

Who is online

Users browsing this forum: No registered users and 7 guests