Jump to content



Photo
- - - - -

Sending/Receiving Data (CFX-9850G)


  • Please log in to reply
37 replies to this topic

#1 Vwarto

Vwarto

    Newbie

  • Members
  • Pip
  • 3 posts
  • Location:Belgium > Antwerp > Brasschaat

  • Calculators:
    CFX-9850G

Posted 18 June 2004 - 08:09 PM

I was thinking about a multiplayer-game between two calculators (maybe with a server-system for more than two players). Is it possible to control the sending and receiving of data with BASIC-language? Any suggestions perhaps...?

Thanks,
Vwarto

#2 [neo]f4kill

[neo]f4kill

    Casio Addict

  • Members
  • PipPipPip
  • 60 posts
  • Location:Montauban, France
  • Interests:programming

  • Calculators:
    G65, G100+, ClassPad 300

Posted 18 June 2004 - 08:25 PM

no

#3 CrimsonCasio

CrimsonCasio

    UCF Ambassador

  • [Legends]
  • PipPipPipPipPipPipPipPipPipPip
  • 3579 posts
  • Gender:Male
  • Location:USA
  • Interests:Claculators, Stephen King, Video Games, Calculators, Programming, Calculators, Reading, Calculators... hmm, what else... Ah! Calculators!

  • Calculators:
    Algebra FX2.0, CFX 9850Ga+, Classpad 300

Posted 18 June 2004 - 08:51 PM

short, but true. no its not possible... the send and recieve commands were made to comunicate with a computer, not another calc.

#4 Vwarto

Vwarto

    Newbie

  • Members
  • Pip
  • 3 posts
  • Location:Belgium > Antwerp > Brasschaat

  • Calculators:
    CFX-9850G

Posted 18 June 2004 - 08:56 PM

Pitty! ...and are there any commands for transceiving data with a computer, or is the link capability just useful for transceiving program-code and screenshots?

#5 CrimsonCasio

CrimsonCasio

    UCF Ambassador

  • [Legends]
  • PipPipPipPipPipPipPipPipPipPip
  • 3579 posts
  • Gender:Male
  • Location:USA
  • Interests:Claculators, Stephen King, Video Games, Calculators, Programming, Calculators, Reading, Calculators... hmm, what else... Ah! Calculators!

  • Calculators:
    Algebra FX2.0, CFX 9850Ga+, Classpad 300

Posted 18 June 2004 - 09:01 PM

I dont think that there is anything you can do with it really, at least not with your model...

#6 Bob Vila

Bob Vila

    Casio Overlord

  • Members
  • PipPipPipPipPipPipPip
  • 768 posts
  • Gender:Male
  • Location:USA

  • Calculators:
    FX 1.0+ : CFX-9850 GB Plus : TI-81

Posted 18 June 2004 - 11:59 PM

other models???

#7 CrimsonCasio

CrimsonCasio

    UCF Ambassador

  • [Legends]
  • PipPipPipPipPipPipPipPipPipPip
  • 3579 posts
  • Gender:Male
  • Location:USA
  • Interests:Claculators, Stephen King, Video Games, Calculators, Programming, Calculators, Reading, Calculators... hmm, what else... Ah! Calculators!

  • Calculators:
    Algebra FX2.0, CFX 9850Ga+, Classpad 300

Posted 19 June 2004 - 05:13 AM

AFX

#8 Andy.Davies

Andy.Davies

    Forum Ghost

  • [Legends]
  • PipPipPipPipPipPipPipPip
  • 1547 posts
  • Gender:Male
  • Location:Dorset, England
  • Interests:Age: 18
    Studying: MEng in cybernetics at Reading uni
    Interests: Progaming (VB, VB.Net, C#, Casio Basic)
    Computers UBBD (Using, Building, Breaking & Destroying)
    Gaming (FPS, RTS, RPG)
    Electronics
    Rock Music (Preferably Loud)
    Riley's (Pool & Snooker Bar)
    Driving (Preferably fast)
    Aikedo (Martial Art)

  • Calculators:
    Algebra FX 2.0 ROM 1.01, FX9750G

Posted 19 June 2004 - 07:33 AM

dot forget the maker of casioCOM he made a DLL that allowed you to use send( and recive( with a PC, so i f you make te server side your PC and vcame up with a method of having more than one PC <> Calc cable, then it could be doen :)

#9 [neo]f4kill

[neo]f4kill

    Casio Addict

  • Members
  • PipPipPip
  • 60 posts
  • Location:Montauban, France
  • Interests:programming

  • Calculators:
    G65, G100+, ClassPad 300

Posted 19 June 2004 - 08:38 AM

yep but it lose its interest .. coz a multiplayer game on calc wich need a PC and at least 2 cables PC<>calc ... it's a bit too big to be played at school for exemple ..

btw: sorry for my short answer but I was busy and I answered very quickly

#10 Vwarto

Vwarto

    Newbie

  • Members
  • Pip
  • 3 posts
  • Location:Belgium &gt; Antwerp &gt; Brasschaat

  • Calculators:
    CFX-9850G

Posted 19 June 2004 - 08:51 AM

Yes off course, but what about a LAN party? (with calculators?) :blink: I want to give it a try. The only thing I want to know is whether the operation of sending and receiving data takes too much time so the graphics will go too slow for a smooth gameplay :(
I was thinking of just two players so the data will be rather short.

#11 Andy.Davies

Andy.Davies

    Forum Ghost

  • [Legends]
  • PipPipPipPipPipPipPipPip
  • 1547 posts
  • Gender:Male
  • Location:Dorset, England
  • Interests:Age: 18
    Studying: MEng in cybernetics at Reading uni
    Interests: Progaming (VB, VB.Net, C#, Casio Basic)
    Computers UBBD (Using, Building, Breaking &amp; Destroying)
    Gaming (FPS, RTS, RPG)
    Electronics
    Rock Music (Preferably Loud)
    Riley's (Pool &amp; Snooker Bar)
    Driving (Preferably fast)
    Aikedo (Martial Art)

  • Calculators:
    Algebra FX 2.0 ROM 1.01, FX9750G

Posted 19 June 2004 - 09:23 AM

Once i have found the url, goto his site, and there is a VB and a C++ example of how to use it, when i tried it it worked quite quickly.

#12 PerCasioAdAstra

PerCasioAdAstra

    Casio Addict

  • Members
  • PipPipPip
  • 83 posts
  • Location:Stavanger, Norway
  • Interests:Programming, gaming, gf, ..

  • Calculators:
    CFX 9850 GB PLUS WE;

Posted 19 June 2004 - 11:43 PM

i think the main reason why the send( and recieve( functions work with computers but not calculators is because of some byte packs it sends automatically, to verify a connection. However, a calculator will send a byte less (or more) in return when recieving this "command", and thats why you get the com-error.

Note; i think i've read this somewhere, but i'm not 100% certain

#13 Andy.Davies

Andy.Davies

    Forum Ghost

  • [Legends]
  • PipPipPipPipPipPipPipPip
  • 1547 posts
  • Gender:Male
  • Location:Dorset, England
  • Interests:Age: 18
    Studying: MEng in cybernetics at Reading uni
    Interests: Progaming (VB, VB.Net, C#, Casio Basic)
    Computers UBBD (Using, Building, Breaking &amp; Destroying)
    Gaming (FPS, RTS, RPG)
    Electronics
    Rock Music (Preferably Loud)
    Riley's (Pool &amp; Snooker Bar)
    Driving (Preferably fast)
    Aikedo (Martial Art)

  • Calculators:
    Algebra FX 2.0 ROM 1.01, FX9750G

Posted 20 June 2004 - 06:36 AM

thats correct, one sends 0x15 and one sends 0x16, but i cant remember which

#14 Andy.Davies

Andy.Davies

    Forum Ghost

  • [Legends]
  • PipPipPipPipPipPipPipPip
  • 1547 posts
  • Gender:Male
  • Location:Dorset, England
  • Interests:Age: 18
    Studying: MEng in cybernetics at Reading uni
    Interests: Progaming (VB, VB.Net, C#, Casio Basic)
    Computers UBBD (Using, Building, Breaking &amp; Destroying)
    Gaming (FPS, RTS, RPG)
    Electronics
    Rock Music (Preferably Loud)
    Riley's (Pool &amp; Snooker Bar)
    Driving (Preferably fast)
    Aikedo (Martial Art)

  • Calculators:
    Algebra FX 2.0 ROM 1.01, FX9750G

Posted 20 June 2004 - 09:49 AM

ok, i have found the link to the CasIO page:

GP Productions

just click on the CasIO link on the left menu :)

#15 Mohamed

Mohamed

    UCF Police

  • [Legends]
  • PipPipPipPipPipPipPip
  • 519 posts
  • Gender:Male
  • Location:Egypt, Cairo

  • Calculators:
    AFX 2.0, PV-S660, fx-570MS

Posted 20 June 2004 - 07:53 PM

If by any means you are going to make a 2 calculator game that runs through the PC, then I don't know what to say!
It's a lot better to have two players on the PC. :)

#16 Matze

Matze

    Newbie

  • Members
  • Pip
  • 15 posts

Posted 24 June 2004 - 01:23 PM

Hi!
I think it IS POSSIBLE. I am currently working at a baudrate converter to allow overclocked calculators to communicate with other devices. There will be a small microcontroller. It will be no problem to implement a multiplayer function.
Only difficulty: The pattern will have 2 layers (front & back side with circuit paths). I am building it with ics i have here from old motherboards. It consists of: 2x um61256 32kbyte cache, 2x latch 74hc573 and the microcontroller Atmel ATmega8 (2 latches because i didn't have enough i/o pins).

Finish time: perhaps august this year. It'll be free to everyone.

But what i originally wanted to say:
I think the communication WILL BE TOO SLOW!

9600 bps = bits per second
8 databits 1 startbit 2 stopbits=11 bits per byte
=>870 bytes per second

data to transmit:
communication start: 2 bytes
header: 50 bytes
1 byte
min. 30 bytes for data
50 bytes for endheader

AND: the calc that calls "recv" has 2 headers: request header and response header...
lets calculate with 200 bytes per transfer (for 1 variable):
a transfer will take about 0,2 seconds.
If you send more data (5x5 matrix for example) you need to send 25 datablocks each about 30 bytes. So we need about 1 second.
This is really too long. A snake game is impossible. Chess would be nice...

cu
Matze

#17 Mr_Sparkle

Mr_Sparkle

    Casio Fan

  • Members
  • PipPip
  • 32 posts
  • Location:South Australia
  • Interests:Sport<br>Aussie Rules Footy<br>Computers<br>Compuer Games (Medal Of Honor!!)<br>God<br>Graphic Calculator programming

  • Calculators:
    cfx-9850gb plus

Posted 25 June 2004 - 07:05 AM

that cable your making.....
does it plug straight from one calc into another calc
or do u have to go through a computer??

#18 huhn_m

huhn_m

    Casio Maniac

  • [Legends]
  • PipPipPipPipPipPipPipPip
  • 1957 posts
  • Gender:Male
  • Location:Germany / Dresden
  • Interests:Assembler(!!!)
    Computers and Programming
    Operating Systems
    Programmable Calculators
    Maths and everything arround it

  • Calculators:
    FX-82SX / AFX 2.0+ (ROM 1.03) / FX 1.0+ (ROM 1.03)

Posted 27 June 2004 - 12:50 PM

it's straight ( :) sounds funny) but there is a small micro-controller in it.

#19 PerCasioAdAstra

PerCasioAdAstra

    Casio Addict

  • Members
  • PipPipPip
  • 83 posts
  • Location:Stavanger, Norway
  • Interests:Programming, gaming, gf, ..

  • Calculators:
    CFX 9850 GB PLUS WE;

Posted 27 June 2004 - 12:55 PM

oi!

will it be possible for "mortals" to create such a cable aswell? :P

#20 Andy.Davies

Andy.Davies

    Forum Ghost

  • [Legends]
  • PipPipPipPipPipPipPipPip
  • 1547 posts
  • Gender:Male
  • Location:Dorset, England
  • Interests:Age: 18
    Studying: MEng in cybernetics at Reading uni
    Interests: Progaming (VB, VB.Net, C#, Casio Basic)
    Computers UBBD (Using, Building, Breaking &amp; Destroying)
    Gaming (FPS, RTS, RPG)
    Electronics
    Rock Music (Preferably Loud)
    Riley's (Pool &amp; Snooker Bar)
    Driving (Preferably fast)
    Aikedo (Martial Art)

  • Calculators:
    Algebra FX 2.0 ROM 1.01, FX9750G

Posted 27 June 2004 - 01:04 PM

I should hope so! if not i will make a PCB and help people make them (i hope)

#21 Mr_Sparkle

Mr_Sparkle

    Casio Fan

  • Members
  • PipPip
  • 32 posts
  • Location:South Australia
  • Interests:Sport<br>Aussie Rules Footy<br>Computers<br>Compuer Games (Medal Of Honor!!)<br>God<br>Graphic Calculator programming

  • Calculators:
    cfx-9850gb plus

Posted 28 June 2004 - 12:11 AM

it's straight (:) sounds funny) but there is a small micro-controller in it.


good call lol :)
how much approximatly would it cost to make one of these cables??
eg equiptment etc
Mr Sparkle B)

#22 R00KIE

R00KIE

    Casio Freak

  • Members
  • PipPipPipPip
  • 155 posts
  • Location:Portugal
  • Interests:Electronics, games, programming

  • Calculators:
    HP49G ROM 1.24; CASIO CFX-9850GB PLUS;CASIO FX-6300G; CASIO FX-82TL

Posted 28 June 2004 - 10:24 AM

@Matze

could you post the schematic, please.
I would like to have a look at it, i think it can be done with less hardware if you select the parts (the micro controler) correctly and if you program it the right way.

#23 PerCasioAdAstra

PerCasioAdAstra

    Casio Addict

  • Members
  • PipPipPip
  • 83 posts
  • Location:Stavanger, Norway
  • Interests:Programming, gaming, gf, ..

  • Calculators:
    CFX 9850 GB PLUS WE;

Posted 28 June 2004 - 02:07 PM

general question:
will you have to manipulate the calculator itself, or are you just tampering with the transfer cable?

#24 Andy.Davies

Andy.Davies

    Forum Ghost

  • [Legends]
  • PipPipPipPipPipPipPipPip
  • 1547 posts
  • Gender:Male
  • Location:Dorset, England
  • Interests:Age: 18
    Studying: MEng in cybernetics at Reading uni
    Interests: Progaming (VB, VB.Net, C#, Casio Basic)
    Computers UBBD (Using, Building, Breaking &amp; Destroying)
    Gaming (FPS, RTS, RPG)
    Electronics
    Rock Music (Preferably Loud)
    Riley's (Pool &amp; Snooker Bar)
    Driving (Preferably fast)
    Aikedo (Martial Art)

  • Calculators:
    Algebra FX 2.0 ROM 1.01, FX9750G

Posted 28 June 2004 - 06:53 PM

I think they are just fiddleing the cable, not the calculator!

#25 octobclrnts

octobclrnts

    Casio Freak

  • Members
  • PipPipPipPip
  • 145 posts
  • Location:Pennsylvania, United States
  • Interests:Computers<br />Programming languages<br />Artificial Intelligence<br />Music (clarinet)

  • Calculators:
    Casio CFX 9850GB Plus
    Ti-89 Titanium

Posted 28 June 2004 - 07:46 PM

Wow, I'm very impressed with this cable idea. I think it is great that you are doing this. I can barely tell a resistor from a battery (well maybe I can but you get the idea :unsure: ). In fact, could somebody point me to a good tutorial or lesson on electronics. I would like to learn more in this area. But again, great job and I hope it turns out well for you. :D

#26 Andy.Davies

Andy.Davies

    Forum Ghost

  • [Legends]
  • PipPipPipPipPipPipPipPip
  • 1547 posts
  • Gender:Male
  • Location:Dorset, England
  • Interests:Age: 18
    Studying: MEng in cybernetics at Reading uni
    Interests: Progaming (VB, VB.Net, C#, Casio Basic)
    Computers UBBD (Using, Building, Breaking &amp; Destroying)
    Gaming (FPS, RTS, RPG)
    Electronics
    Rock Music (Preferably Loud)
    Riley's (Pool &amp; Snooker Bar)
    Driving (Preferably fast)
    Aikedo (Martial Art)

  • Calculators:
    Algebra FX 2.0 ROM 1.01, FX9750G

Posted 28 June 2004 - 07:56 PM

I am currently working at a baudrate converter to allow overclocked calculators to communicate with other devices.

On second thoughts, I think that they intend to mod the actuall calculator. As I dont think Casio sell overclocked calculators :lol2:

#27 Wutje

Wutje

    Newbie

  • Members
  • Pip
  • 4 posts

  • Calculators:
    CFX9850GB+

Posted 30 June 2004 - 02:17 PM

Could you please post the schematics...??
Since the ATMEGA8 has only 1 UART, how are you going to communicate to two devices? Multiplexing? Is that the reason for the latches? :blink:
I'am very interested since I've got two ATMEGA8 here waiting for a usefull function!

Are there no smal microcontrollers with two UART's? (I only know "big" microcontrollers with two UART's)

Maybe there are external UART's on I2C or SPI?

#28 octobclrnts

octobclrnts

    Casio Freak

  • Members
  • PipPipPipPip
  • 145 posts
  • Location:Pennsylvania, United States
  • Interests:Computers<br />Programming languages<br />Artificial Intelligence<br />Music (clarinet)

  • Calculators:
    Casio CFX 9850GB Plus
    Ti-89 Titanium

Posted 30 June 2004 - 02:34 PM

Wow, if I didn't know any better I'd say that that post wasn't in english. This is why I need you guys to educate me. Please send me to a site where I could begin to know what Wutje just said. Thanks.

#29 CrimsonCasio

CrimsonCasio

    UCF Ambassador

  • [Legends]
  • PipPipPipPipPipPipPipPipPipPip
  • 3579 posts
  • Gender:Male
  • Location:USA
  • Interests:Claculators, Stephen King, Video Games, Calculators, Programming, Calculators, Reading, Calculators... hmm, what else... Ah! Calculators!

  • Calculators:
    Algebra FX2.0, CFX 9850Ga+, Classpad 300

Posted 30 June 2004 - 02:40 PM

*laughs really, really, hard because that statement was soooo reflective of my thoughts...*

#30 Andy.Davies

Andy.Davies

    Forum Ghost

  • [Legends]
  • PipPipPipPipPipPipPipPip
  • 1547 posts
  • Gender:Male
  • Location:Dorset, England
  • Interests:Age: 18
    Studying: MEng in cybernetics at Reading uni
    Interests: Progaming (VB, VB.Net, C#, Casio Basic)
    Computers UBBD (Using, Building, Breaking &amp; Destroying)
    Gaming (FPS, RTS, RPG)
    Electronics
    Rock Music (Preferably Loud)
    Riley's (Pool &amp; Snooker Bar)
    Driving (Preferably fast)
    Aikedo (Martial Art)

  • Calculators:
    Algebra FX 2.0 ROM 1.01, FX9750G

Posted 30 June 2004 - 05:14 PM

*laughs, as i realize, theat is exactly how i sound when talking about electronics :lol2:

You could always try making an interface/baudrate converter using a PIC chip or an ATMEL Controller

#31 PerCasioAdAstra

PerCasioAdAstra

    Casio Addict

  • Members
  • PipPipPip
  • 83 posts
  • Location:Stavanger, Norway
  • Interests:Programming, gaming, gf, ..

  • Calculators:
    CFX 9850 GB PLUS WE;

Posted 30 June 2004 - 10:10 PM

can we talk basic physics instead? :P

#32 Andy.Davies

Andy.Davies

    Forum Ghost

  • [Legends]
  • PipPipPipPipPipPipPipPip
  • 1547 posts
  • Gender:Male
  • Location:Dorset, England
  • Interests:Age: 18
    Studying: MEng in cybernetics at Reading uni
    Interests: Progaming (VB, VB.Net, C#, Casio Basic)
    Computers UBBD (Using, Building, Breaking &amp; Destroying)
    Gaming (FPS, RTS, RPG)
    Electronics
    Rock Music (Preferably Loud)
    Riley's (Pool &amp; Snooker Bar)
    Driving (Preferably fast)
    Aikedo (Martial Art)

  • Calculators:
    Algebra FX 2.0 ROM 1.01, FX9750G

Posted 01 July 2004 - 12:04 PM

No! because that would be off topic :P

#33 PerCasioAdAstra

PerCasioAdAstra

    Casio Addict

  • Members
  • PipPipPip
  • 83 posts
  • Location:Stavanger, Norway
  • Interests:Programming, gaming, gf, ..

  • Calculators:
    CFX 9850 GB PLUS WE;

Posted 01 July 2004 - 04:53 PM

no it wouldn't be!

physics describes what happens, in micro and macro levels. Clearly, describing, by utilizing laws of physics, what really happens wouldn't be off-topic :P

Anyway, communication between two calcs via programs sounds lovely. I'm looking forward to it!

#34 Wutje

Wutje

    Newbie

  • Members
  • Pip
  • 4 posts

  • Calculators:
    CFX9850GB+

Posted 03 July 2004 - 07:20 PM

Sorry if I you couldn't follow me, now you know how i feel when people start talking on malloc, gaps, heaps, dweaps, sweeps en bleeps.... :blink:
on the other hand, perhaps that reply was not written for you :P

I will try to explain a few things: the "device" the casio uses to communicate is a UART (Universal Asynchronous Receive Transmit or.... something a like)

The good news is that most microcrontrollers (e.g. ATmega) have an onboard UART. Which means you don't need to care about timing, shifting bits, start stop conditions etc... :D

The bad news is most of the microcontrollers only have one... And you really want two UART's. Since you need to listen to both calc's. :(

You could always try making an interface/baudrate converter using a PIC chip or an ATMEL Controller


You can make an "soft" UART of course... but that's not the most easy thing to do.., come to think of it, maybe someone already made one... I remember thinking why the *** would someone write a soft UART if you got it in hardware. :unsure: I'll check it...

#35 Andy.Davies

Andy.Davies

    Forum Ghost

  • [Legends]
  • PipPipPipPipPipPipPipPip
  • 1547 posts
  • Gender:Male
  • Location:Dorset, England
  • Interests:Age: 18
    Studying: MEng in cybernetics at Reading uni
    Interests: Progaming (VB, VB.Net, C#, Casio Basic)
    Computers UBBD (Using, Building, Breaking &amp; Destroying)
    Gaming (FPS, RTS, RPG)
    Electronics
    Rock Music (Preferably Loud)
    Riley's (Pool &amp; Snooker Bar)
    Driving (Preferably fast)
    Aikedo (Martial Art)

  • Calculators:
    Algebra FX 2.0 ROM 1.01, FX9750G

Posted 03 July 2004 - 08:39 PM

cool, if you need any help with PIC chips, just ask me :thumbsup:

#36 Wutje

Wutje

    Newbie

  • Members
  • Pip
  • 4 posts

  • Calculators:
    CFX9850GB+

Posted 03 July 2004 - 09:28 PM

I found an "soft" UART. It's part of the Procyon AVRlib (sorry I'am an Avr Adept not a Pic adept). B) Getting some pic chips wouldn't be a problem he? :rolleyes:

So basicly if you get the smallest avr with a UART (probably the AT90S2313 or the ATTiny2313) one is capable of making two calc's communicate. Or one coulde try to a smaller one and making two soft UART's

It would be a nice project.... if one has two calc's
I could probably put hands on a second casio, and I have a mega8 (which would do the trick as well)... but then again it would cost a lot of time... it would be nice if there are others willing to participate, anyone with atmel's on the shelf?

It would still be at a terrible rate due to the protocol casio build.... they are sending more than 200 bytes just to get one (1) variable over! :banghead:

#37 lathiat

lathiat

    Newbie

  • Members
  • Pip
  • 1 posts

  • Calculators:
    Casio 9850GB+

Posted 29 July 2004 - 04:18 AM

He I was thinking about doing this when I read about not being able to do calc-calc, guess I'm not alone :)

Let us know on your progress :)

#38 huhn_m

huhn_m

    Casio Maniac

  • [Legends]
  • PipPipPipPipPipPipPipPip
  • 1957 posts
  • Gender:Male
  • Location:Germany / Dresden
  • Interests:Assembler(!!!)
    Computers and Programming
    Operating Systems
    Programmable Calculators
    Maths and everything arround it

  • Calculators:
    FX-82SX / AFX 2.0+ (ROM 1.03) / FX 1.0+ (ROM 1.03)

Posted 02 August 2004 - 08:10 PM

They do not intend to overclock the calcs ... they HAVE overclocked the CFX calcs (a bit late but just to put that right :) )




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users