Jump to content



Photo
- - - - -

Send38k & Receive38k


  • Please log in to reply
9 replies to this topic

#1 vstrasser

vstrasser

    Newbie

  • Members
  • Pip
  • 13 posts

  • Calculators:
    Classpad300

Posted 03 October 2004 - 12:01 AM

Somebody knows if its possible connects two classpad using 3pin cable and use Send38K/Receive38K to send and receive data?

I've read that these procedures were made to work with data analisers (like EA200).
Would be very useful them, since they have a small timeout, compared with GetVar38K.

I also would be interested in protocol information. Where I could fim something about without connecting a logical data analiser to my classpad :P

Thanks


ps.: excuse me for my bad english, it's not my native language

#2 Griott

Griott

    Newbie

  • Members
  • Pip
  • 29 posts
  • Interests:Programming Delphi, C#.NET, PocketPC.<br />Casio ClassPad 300 Programming, bugs, issues, notes, observations, colaborations, ideas, etc.<br />Use of the CP300 technology in the classroom, proffessionally and as a hobby.<br />

  • Calculators:
    CP300, AFX2.0+,FX1.0+,CFX9950GBWE, HP49G

Posted 04 October 2004 - 01:05 AM

Hello

Somebody knows if its possible connects two classpad using 3pin cable and use Send38K/Receive38K to send and receive data?

I've read that these procedures were made to work with data analisers (like EA200).
Would be very useful them, since they have a small timeout, compared with GetVar38K.

I also would be interested in protocol information. Where I could fim something about without connecting a logical data analiser to my classpad  :P

Thanks


ps.: excuse me for my bad english, it's not my native language

<{POST_SNAPBACK}>


The procedures you talk about can be used to communicate two calculators, they are compatible with themselves. Do a search of posts from MKanter , he has done research on the protocols topic.

#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 04 October 2004 - 01:27 AM

really... didnt know that. I'll do some research on them and mabey i can improve my chat program.

#4 vstrasser

vstrasser

    Newbie

  • Members
  • Pip
  • 13 posts

  • Calculators:
    Classpad300

Posted 04 October 2004 - 01:39 AM

I tried connect two classpads... really I had sucess connecting the cable... just this :P

I did to programs... for the first calculator, sender:

OpenComPort38K
SendVar38K t **** se a note about this line
CloseComPort38K

the second, receiver:

OpenComPort38K
I=0
do
Receive38K t
I=I+1
while (I<5)
CloseComPort38K

note: I tried SendVar38K and Send38K, sending the same variable, if no sucess
maybe there are errors casiobasic languagein the implementation, but there weren't in the calculator... :P

With these codes, the second calculator, the receiver one, did no receive the value assigned to t var.
There is an advantage in Receive38K. It has a very small timeout value, when compared with GetVar38K.

Thanks

#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 04 October 2004 - 02:24 AM

take a look at my chat program for an example, i sucsessesfully implemented sending text back and forth from calc to calc.

#6 vstrasser

vstrasser

    Newbie

  • Members
  • Pip
  • 13 posts

  • Calculators:
    Classpad300

Posted 05 October 2004 - 08:56 AM

Send38K/Receive38K and SendVar38K/GetVar38K are not compatible.
An explanation about them are in

http://216.239.37.10.../language_tools

This link is a google translation of original website, in germany

I looked it for in classpad manual, and some information about send38k/receive38k are avaliable. A restriction exists: the variable that has the information to transferring, must be a real number or a list. I think we'll cannot use them to transferring texts :(
If somebody has the EA200 manual, please look it for these functions. There are more information about them there.

#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 05 October 2004 - 10:14 AM

yeah, i knew that already, but the idea i had is to use those to send either a 1 or a 0 to the other calc, if a 0 was sent then the recieving calc would send a 1 or 0. when any calc recieved a 1 it would use RecieveVar38k to get the text the other calc would then try to send. (thats the basic idea at least)

i cant test it on my end atm cause my friend needs to bring me his classpad, if you can do it go ahead.

#8 Griott

Griott

    Newbie

  • Members
  • Pip
  • 29 posts
  • Interests:Programming Delphi, C#.NET, PocketPC.<br />Casio ClassPad 300 Programming, bugs, issues, notes, observations, colaborations, ideas, etc.<br />Use of the CP300 technology in the classroom, proffessionally and as a hobby.<br />

  • Calculators:
    CP300, AFX2.0+,FX1.0+,CFX9950GBWE, HP49G

Posted 06 October 2004 - 08:22 PM

The procedures you talk about can be used to communicate two calculators


Sorry, I began doing tests on this topic and confirmed that it is not possible to use Send38K/Receive38K to communicate two calcs :greengrin: . What I tryed was:

1) Send38K Receive38k
In this case both programs end quickly. No results with reals neither lists
2) SendVar38K Receive38k
No results.
3) Send38K GetVar38k
Both programs end quickly, since, for some reason, Send38K causes GetVar38k to end, like if it accepted its format without complaining. No variable could be transfered nor any value.

I do have here an EA-200, and did a test with it using not the ECON-EA200 but a small program in the Cp300:

OpenComPort38k
{0}->a
Send38k a

{1,1,9}->a
Send38k a

{3,1,60}->a
Send38k a
Message "Now press the EA-200 [START/STOP] key. and wait for the sampling of the data."
 
Receive38k list1
Receive38k list2

Print list1
Print list2

CloseComPort38k

This program initializes the EA-200, sets up the optical probe, the total sampling time and the number of samples. It also return in two lists (viewable directly with the Statistics application) the time and values.

I could be of more help if I had the cable to monitor the serial comm between the calc and the EA-200. (I am working on that)

On the other hand, why is the long timeout of GetVar38k a problem.. In my test I ran the receiver prog and it kept waiting, when I ran the sender prog then the receiver progr ended immediatly.

I looked into the EA-200's manual. It comes with information related to other supported calcs like AFX and CFX. They say one should go to the calc's manual to see details of the comm functions.

Finally, in that manual there is a complete description of the protocol used by the EA-200. The only pending thing is to know how do Send38K/Receive38K work :D .

#9 Guest_Guest_mkanter_*_*

Guest_Guest_mkanter_*_*
  • Guests

Posted 17 October 2004 - 12:33 PM

ohm???

the problem is that the receive commands (any of the three) have to be executed first.
They don't return until something is received.

The backward compatibily to CFX is granted with send and receive with use the protocol of the CFX.

AND IT IS POSSIBLE TO SEND STRINGS: my program sinkship takes an excessive use of it (is the first multi-player game for classpad)

I'LL BE BACK ;)

#10 Griott

Griott

    Newbie

  • Members
  • Pip
  • 29 posts
  • Interests:Programming Delphi, C#.NET, PocketPC.<br />Casio ClassPad 300 Programming, bugs, issues, notes, observations, colaborations, ideas, etc.<br />Use of the CP300 technology in the classroom, proffessionally and as a hobby.<br />

  • Calculators:
    CP300, AFX2.0+,FX1.0+,CFX9950GBWE, HP49G

Posted 18 October 2004 - 04:30 AM

They don't return until something is received.


I experienced this with GetVar38k, but not with Receive38k.

AND IT IS POSSIBLE TO SEND STRINGS: my program sinkship takes an excessive use of it (is the first multi-player game for classpad)


I thought you were using Send38K/Receive38K there.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users