Author Topic: First globalCALCnet (gCn) Successes  (Read 18508 times)

0 Members and 1 Guest are viewing this topic.

Offline KermMartian

  • Editor
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 500
  • Rating: +233/-20
    • View Profile
    • Cemetech
First globalCALCnet (gCn) Successes
« on: January 03, 2011, 04:34:24 pm »
Over almost exactly the past seven days, I have been working on globalCALCnet (heretofore gCn for the sake of simplicity), a longstanding project of mine to connect CALCnet2.2 networks and their constituent calculators over the internet.  It can work as simply as connecting two individual calculators as if they were right next to each other, or at the opposite extreme link together many networks, each consisting of many calculators, into a single virtual hub.  As you might imagine, such a system is quite complex, and once I finish working out glitches and kinks, I will probably write a Cemetech whitepaper to detail the system.  Here's the executive summary of the different pieces:

CALCnet2.2 network: One or more calculators linked together with a Cn2.2 network, requiring only the calculators and a handful of unit-to-unit cables.
AVR-based microcontroller board with FTDI: For the prototypes I've made, I'm using the widely-popular Arduino Duemilanove board, offering a 16MHz AVR with 32KB of EEPROM and 2KB of SRAM.  This board pretends to be a calculator participating in the network, but passing incoming frames up to a connected PC via serial/USB, and injects frames into the network from the PC.
C++ gcnclient application: The gcnclient application connects both to the local Arduino and to a remove gCn virtual hub aggregator.  The gcnclient is responsible for moving 1-to-1 and broadcast frames from the Arduino to the remote server and vice versa.
Python gcnhub server daemon: The gcnhub, or virtual hub aggregator, acts as one or more virtual hubs linking together groups of remote gcnclient applications.  There is currently a single gcnhub server, but if gCn becomes more popular, it would be easy to distribute this program so that users could set up their own servers.

Frames (the CALCnet equivalent of packets) travel from one CALCnet2.2 network, through the connected Arduino, to the gcnclient and through the internet to a gcnhub, which routes the packet as necessary to another gcnclient, which hands off the frame to its Arduino and therefore its connected CALCnet2.2 network.  I have successfully demonstrated Flourish running between a pair of single-calculator CALCnet2.2 networks, connected by a 12-mile round-trip over the internet but acting as if they were directly connected; my testbed can be seen below.

Please post all kinds of questions, suggestions, comments, and insults in the attached topic.  I would especially appreciate users who have an Arduino to spare who would like to help me test globalCALCnet.  Cheers!



« Last Edit: January 05, 2011, 06:19:55 pm by DJ Omnimaga »



Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: First globalCALCnet (gCn) Successes
« Reply #1 on: January 03, 2011, 04:38:34 pm »
This sounds cool.  Will this eventually be able to let us play two (or more) player games on our calcs even if we're in two different countries?

Good luck Kerm. :)

Offline KermMartian

  • Editor
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 500
  • Rating: +233/-20
    • View Profile
    • Cemetech
Re: First globalCALCnet (gCn) Successes
« Reply #2 on: January 03, 2011, 04:48:48 pm »
This sounds cool.  Will this eventually be able to let us play two (or more) player games on our calcs even if we're in two different countries?

Good luck Kerm. :)
With what I've put together, you already can, albeit slightly glitchily. :)



Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: First globalCALCnet (gCn) Successes
« Reply #3 on: January 03, 2011, 04:54:11 pm »
Please post all kinds of questions, suggestions, comments, and insults in the attached topic.  I would especially appreciate users who have an Arduino to spare who would like to help me test globalCALCnet.  Cheers!
Spoiler For joke:
I hate it.  lol .

I can't wait.
About how much will it cost?
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline holmes221b

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 282
  • Rating: +13/-1
  • RESISTANCE IS FUTILE.
    • View Profile
    • My Livejournal
Re: First globalCALCnet (gCn) Successes
« Reply #4 on: January 03, 2011, 05:20:08 pm »
So basically, you've just about outdone the US Government.

Spoiler For "Projects":
Spoiler For "Because Everyone Else Is":
*Sigh*
can we keep this on topic? The topic is about what the big thing might be, NOT SEX

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: First globalCALCnet (gCn) Successes
« Reply #5 on: January 03, 2011, 05:28:30 pm »
Nice! This is one part of CALCnet I wanted to see for a while :).

6 months ago, somebody had the idea of a program and computer software that allowed to send calculator files to a server online, such as highscores. Seems like this might be one of many possible uses for gCn for people who can get the additional equipment above the 3 calculators.

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: First globalCALCnet (gCn) Successes
« Reply #6 on: January 03, 2011, 06:52:15 pm »
This is awesome. Way to go, Kerm.

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Michael_Lee

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1019
  • Rating: +124/-9
    • View Profile
Re: First globalCALCnet (gCn) Successes
« Reply #7 on: January 03, 2011, 07:04:36 pm »
This is amazingly amazing, Kerm!
My website: Currently boring.

Projects:
Axe Interpreter
   > Core: Done
   > Memory: Need write code to add constants.
   > Graphics: Rewritten.  Needs to integrate sprites with constants.
   > IO: GetKey done.  Need to add mostly homescreen IO stuff.
Croquette:
   > Stomping bugs
   > Internet version: On hold until I can make my website less boring/broken.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: First globalCALCnet (gCn) Successes
« Reply #8 on: January 03, 2011, 07:09:10 pm »
That is sweet. Maybe now someone will write a real MMO for calcs O.O




Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: First globalCALCnet (gCn) Successes
« Reply #9 on: January 03, 2011, 07:11:18 pm »
MMO?
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline KermMartian

  • Editor
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 500
  • Rating: +233/-20
    • View Profile
    • Cemetech
Re: First globalCALCnet (gCn) Successes
« Reply #10 on: January 03, 2011, 07:12:19 pm »
I've been tossing around a few program ideas for multiplayer or MMO games that would be fun with CALCnet and gCn; I'll let you guys know if I do.  I'm still trying to iron out bugs and glitches, and I'll try to remember to update this thread, but of course there will be more frequent updates in the original topic. :) Oh, and Merth and TIfreak8x mentioned their desire to get Arduinos to test this out.



Offline holmes221b

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 282
  • Rating: +13/-1
  • RESISTANCE IS FUTILE.
    • View Profile
    • My Livejournal
Re: First globalCALCnet (gCn) Successes
« Reply #11 on: January 03, 2011, 07:21:35 pm »
MMO?
Massively Multiplayer Online Roleplaying Game, I think.

Spoiler For "Projects":
Spoiler For "Because Everyone Else Is":
*Sigh*
can we keep this on topic? The topic is about what the big thing might be, NOT SEX

Offline FinaleTI

  • Believe in the pony that believes in you!
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1830
  • Rating: +121/-2
  • Believe in the pony that believes in you!
    • View Profile
    • dmuckerman.tumblr.com
Re: First globalCALCnet (gCn) Successes
« Reply #12 on: January 03, 2011, 07:27:41 pm »
I've been tossing around a few program ideas for multiplayer or MMO games that would be fun with CALCnet and gCn; I'll let you guys know if I do.  I'm still trying to iron out bugs and glitches, and I'll try to remember to update this thread, but of course there will be more frequent updates in the original topic. :) Oh, and Merth and TIfreak8x mentioned their desire to get Arduinos to test this out.
Something else that I kinda want to try after I learn ASM would be to make a sort of GTS (Global Trading Station).
It's basically the ability to trade Pokemon online, which would be pretty cool for any Pokemon game for the 83+/84+ family.


Spoiler For Projects:

My projects haven't been worked on in a while, so they're all on hiatus for the time being. I do hope to eventually return to them in some form or another...

Spoiler For Pokemon TI:
Axe port of Pokemon Red/Blue to the 83+/84+ family. On hold.

Spoiler For Nostalgia:
My big personal project, an original RPG about dimensional travel and a few heroes tasked with saving the world.
Coding-wise, on hold, but I am re-working the story.

Spoiler For Finale's Super Insane Tunnel Pack of Doom:
I will be combining Blur and Collision Course into a single gamepack. On hold.

Spoiler For Nostalgia Origins: Sky's Story:
Prequel to Nostalgia. On hold, especially while the story is re-worked.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: First globalCALCnet (gCn) Successes
« Reply #13 on: January 03, 2011, 11:37:08 pm »
The only issue with a MMO is if calcs suddently had a giant spike in popularity and gCn did as well, then some cities in the MMORPG always had 100-200 people idling for most of the daytime (except when changing their batteries). That would take a while to render O.O

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: First globalCALCnet (gCn) Successes
« Reply #14 on: January 03, 2011, 11:49:39 pm »
Not if it was homescreen based.

Kerm, I have an arduino :P but you'll have to tell me how to hook it up to get it to work with calcnet. Also, I have an nspire, and that might be an issue. My sis probably won't let me borrow her calc for it.
« Last Edit: January 03, 2011, 11:50:05 pm by willrandship »