Y!Mail wrote:
Essentially. More like this:
>> Computer gCn client acts as a normal calculator on a CALCnet2 network: must ping, cascade, beacon, etc.
>> In addition, however, it broadcasts resource ID type 0 - gCn host.
>> When calculators request data from it via CALCnet2, it must process the request.
>> All requests are preceeded by a two-byte protocol ID for 65536 total possible protocols.
>> Eg. type 0 might be internet, so 0x00,0x00 would be followed by a length byte and a URL
>> the gCn client would look up plugin ID 0, send the URL, and the plugin would retrieve and clip the webpage
>> It would return the data to the gCn client, which would then use CALCnet2 to transfer the webpage data back to the requesting calc.
>> Also eg. type 1 might be AIM, type 2 multiplayer search request, etc.

Thomas Dickerson <elfprince13@gmail.com> wrote:
alleight so here is chain of events.....user plugs calc into
computer....computer is connected to the internet.....software on
computer interfaces with DCS 6 (possibly include USB interface) or to
a program written in Moka (on the 68Ks)....next computer software
connects into a java program controlling gCn.cemetech.net. and relays
info back and forth between cemetech and calc. possibly include option
to connect to mail servers as well....or could do that through
cemetech, but not as fast

On 28/08/05, Kerm Martian wrote:
> Cool. Keep in mind that I'm changing some of the specs as per the forum,
> look for my post / news article explaining the changes.
>
> Thomas Dickerson wrote:
> ok, Im going to go download the gCn whitepaper now and get started on
> a general interface. im assuming this is a go.
>
> On 26/08/05, Kerm Martian wrote:
> > OK, it's gonna be a direct connection scheme.
> > gCn.cemetech.net will store the list of online hosts
> > and users, but to send data hosts will directly
> > contact other hosts via the IP stored on
> > gCn.cemetech.net. All calcs connect via a host comp
> > for now. And yeah, 68ks = yay.
> >
> > --- Thomas Dickerson wrote:
> >
> > > all right, heres my big question: will the calcs be
> > > using TICI and a
> > > modem to connect directly to the gCn server in which
> > > case we'd only
> > > need a server class, or will they connect through
> > > the computer in
> > > which case we'd need a server-side class, and a
> > > client side class that
> > > woud link to the server and the calc.....oh yeah, we
> > > could probably
> > > even extend the network to the 68K's because there
> > > is a Java-C-ASM
> > > compiler for them....that would add quite abit of
> > > computational power
> > > to the network, compared with just having z80's.
> > >
> > > On 24/08/05, Kerm Martian
> > > wrote:
> > > > Hmm, yeah, because it's fairly bit-level...
> > > >
> > > > --- Thomas Dickerson
> > > wrote:
> > > >
> > > > > I dont know about the library communictions, but
> > > > > having the protocol
> > > > > run in the background wouldn't be hard at all
> > > thanks
> > > > > to classes. The
> > > > > hardest part would be extending the built in
> > > Java
> > > > > networking classes
> > > > > to implement the calcNet protocol
> > > > >
> > > > > On 22/08/05, Kerm Martian
> > >
> > > > > wrote:
> > > > > > How easy would it be for you to make it run in
> > > the
> > > > > background and have it
> > > > > > communicate with libraries like TiLP for
> > > access to
> > > > > the BlackLink,
> > > > > > SilverLink, and GrayLink? The idea of modules
> > > > > sounds perfect...
> > > > > >
> > > > > >
> > > > > > elfprince13@gmail.com wrote:
> > > > > >
> > > > > > Hello KermMartian,
> > > > > >
> > > > > > The following is an email sent to you by
> > > > > elfprince13 via your account on
> > > > > > Cemetech. If this message is spam, contains
> > > > > abusive or other comments you
> > > > > > find offensive please contact the webmaster of
> > > the
> > > > > board at the following
> > > > > > address:
> > > > > >
> > > > > > kerm_martian@yahoo.com
> > > > > >
> > > > > > Include this full email (particularly the
> > > > > headers). Please note that the
> > > > > > reply address to this email has been set to
> > > that
> > > > > of elfprince13.
> > > > > >
> > > > > > Message sent to you follows
> > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > > > > >
> > > > > > how would you feel about having it in Java? I
> > > > > noticed you were looking for a
> > > > > > programmer to do the gCn interface, I would be
> > > > > willing to help, however,
> > > > > > Java would be my language of choice for doing
> > > it
> > > > > in....this would make it
> > > > > > easier to do cross platform desktop
> > > > > programs.....RSS, email, web browsing,
> > > > > > etc for the calculator. small little widgets
> > > that
> > > > > teh calc could connect to
> > > > > > even if you weren't online, but still allow
> > > large
> > > > > files to be stored on the
> > > > > > computer and thus prevent memory cloggage on
> > > the
> > > > > calc.....as someone who
> > > > > > uses Mac, Linux, and PC, cross-platform is
> > > fairly
> > > > > important to me. In the
> > > > > > past I have been aggravated by a lack of
> > > > > cross-platformness in on the
> > > > > > compter utilities for the computer, so I felt
> > > now
> > > > > would be a good time to
> > > > > > volunteer my expertise in a cross-platform
> > > > > language.
> > > > > >
> > > > > >
> > > > > > - Kerm Martian
> > > > > > http://www.cemetech.tk
Could you maybe summarize that? I have comments, but I'm not sure if I totally understand the article because of the confusing format.
It's confusing because it's an email that bounced back and forth a couple of times. Smile

Essentially, gCn works thusly:
    >> Computer gCn client acts as a normal calculator on a CALCnet2 network: must ping, cascade, beacon, etc.
    >> In addition, however, it broadcasts resource ID type 0 - gCn host.
    >> When calculators request data from it via CALCnet2, it must process the request.
    >> All requests are preceeded by a two-byte protocol ID for 65536 total possible protocols.
    >> Eg. type 0 might be internet, so 0x00,0x00 would be followed by a length byte and a URL
    >> the gCn client would look up plugin ID 0, send the URL, and the plugin would retrieve and clip the webpage
    >> It would return the data to the gCn client, which would then use CALCnet2 to transfer the webpage data back to the requesting calc.
    >> Also eg. type 1 might be AIM, type 2 multiplayer search request, etc.
I have started working on a basic client-computer-side interface....haven't even done the calcnet protocol yet, just the interface
arg, i can't get the black-USB direct link cable to work in linux....anyone got it to work here? (if so, what'd you use? versions and such), or how about the silver-link? is that one easier to set up? - only thing i need to get working before i can start trying to interface with the calc, i got a working plug-in system already (in C++ i mean)
SilverLink. Get TILP and the SilverLink driver should do the trick.
Kllrnohj wrote:
arg, i can't get the black-USB direct link cable to work in linux....anyone got it to work here? (if so, what'd you use? versions and such), or how about the silver-link? is that one easier to set up? - only thing i need to get working before i can start trying to interface with the calc, i got a working plug-in system already (in C++ i mean)


jUSB.sourceforge.net supports java and c/c++
rivereye wrote:
SilverLink. Get TILP and the SilverLink driver should do the trick.


i was asking about personal experience, lol, cause tilp (and the silverlink driver) both say they support the direct-USB cable, but i just can't get it to work....was wondering if anyway had similar probs with the silverlink, or if it was just plug-in-play for em
@ElfPrince: Awesome! I should post CALCnet2.1 protocol specifics then, shouldn't I?
Packet Format:
Recipient ID, Sender ID, [Datalength,] Data

ID Numbers:
00=beacon, none should acknowledge
01=first calc in network. Broadcasts resource info to new calcs.
01-FE=calcs
FF=full network

Joining a CALCnet2 Network:
1. New calc listens for highest ID calc beacon (should be sent ~once per second): 0x00,0xHighestID,0x00
2. In no beacon in 5 sec, takes ID 0x00 and begins to beacon
3. If beacon ID of 0xFE, disconnects
4. If beacon ID =/= 0xFE, take ID of ID+1, then send 0xID,0xID+1,0x00 to disable beacon of other calc. Begin to beacon.

To Disconnect:
1. Simply wait for end of packet if sending or receiving, then disconnect.
2. On next cascade, non-response will be noted and calc eliminated from chain.

To Perform Cascade Check:
1. 0x01 checks its buffers. If only calc, do nothing.
2. If >1 calc, send 0x02,0x01,0xFF to ping Id 0x02.
3. 0x02 responds 0x01,0x02,0xFF. If happens, 0x01 sends 0x02,0x01,0xFE, then 0x02 repeats with 0x03.
4. If no response, 0x01 sends 0xID,0x01,0xFD to all calcs with IDs greater than its own. This causes them to each decrement their ID by one.
5. Repeat from step 1 with each calc until last is reached. If beacon stops, 0xFinal-1 pinds final, on failure assumes beacon. This is better than signalled disconnect because it guards against accisdental disconnection crashing the network.

To Use Resources:
Coming soon as soon as I finish designing this
thanks...lol....that was what I needed to really start. Java, doesn't have built in USB drivers, but this is an external package. it can be used by C/C++ as well with a little more work....its mostly Mac/*nix based but there is a windows edition as well, and its released under LGPL so it can be used in commercial/proprietary software (If cemetech goes commercial)

oh and would the 01 id# be the server?
elfprince13 wrote:
oh and would the 01 id# be the server?


00 i believe is the server
Nope, no server in CALCnet2, only CALCnet (1) had a server. Every node has equal power in a Cn2 network. 0x01 is simply the first calc to join the network, ie it creates it, so it has a slightly more complex task than the others.
ok, a little over my head, but I hope soon I can understand it all soon.
I understand the concept but I'm not sure I'm that advanced in Java. I just wish my school offered more advanced comp sci courses so I wouldn't have to learn on my own time...
last year I did VB 1 and 2 in a single semester. this year Im skipping Java 1 and going straight to Java 2. next year Im taking classes at the college in the next town over...anyway, I suppose I should wait till the rest of the info is released, but I have a packet class. It takes up 30 lines. Next step computer side client. after that comp-calc communication. Im saving this step till last, because I will need some calc side software to test it with
my school only offers visual basic 1, which i'm taking next semester. I have to teach myself everything i know in C++

sweet! the silver-link cable i borrowed from a friend works perfectly in linux. Now i just gotta go buy one for myself
my school offers wisual BASIC and Java, but they are teaching neither becasue not enough students signed up. (But MCP has 6 students in it)
The only programming class (to my knowledge) that was taught at my school was C and that teacher retired the year bofore I got to the high school.
I've been learnig C++ on my own, so oh well
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 4
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement