Omnimaga

Omnimaga => News => Topic started by: Eeems on January 06, 2011, 12:23:21 am

Title: First Calculator on IRC
Post by: Eeems on January 06, 2011, 12:23:21 am
Kerm Martian has linked the first calculator ever to IRC as explained in the quote below.
*bump* From the relevant Cemetech news article (http://www.cemetech.net/news.php?id=430):

This evening, two days of Python coding paid off, as a CALCnet-enabled TI-83+ connected to a globalCALCnet (gCn) bridge successfully joined and conversed on the EfNet IRC channel #cemetech.  As mentioned previously (http://www.cemetech.net/news.php?id=429), the gCn project allows CALCnet 2.2 networks to be joined across the internet; by pretending to be another CALCnet 2.2 network, the gCn bridge enables IRC users to chat with real calculators and vice versa.  The calculator side is handled by the CALCnet Chat (http://www.cemetech.net/forum/viewtopic.php?t=5123) client written by Merthsoft and with CALCnet networki ng routines written by yours truly; the Python 'gcnirc' program connects to the gCn metahub and pretends to be another calculator running Chat.  However, it also connects to IRC, and formats messages from each medium to be passed to the other.  In the coming days and weeks, this bridge will be fine-tuned, additional progress and debugging of Chat will occur, and arguably most importantly, the Arduino drivers for CALCnet communication will be fine-tuned to massage out some occasional bottlenecks that keep frames (packets) jammed at the device.  Please feel free to post with thoughts, suggestions, and discussions of your projects that you think should run over gCn!

(http://www.cemetech.net/img/projects/gcn/ircbridge.jpg)
Title: Re: First Calculator on IRC
Post by: DJ Omnimaga on January 06, 2011, 12:27:15 am
This is awesome! I wonder if in the future it will allow joining any channel the bot is on? As long as the bot won't keep disconnecting every minute or so it would be kinda cool. Netham45 could edit OmnomIRC to stripe the bot name from logs and make the username red or something so OmnomIRC is easy to read. You might want to edit the images links so they're about 540 pixels large, though, like the previous news, since it might distort the front page, though.
Title: Re: First Calculator on IRC
Post by: Eeems on January 06, 2011, 12:30:03 am
That would be great :D
Edited to the same specs as the other ones, which is 550px wide...should it be 540 instead?
Title: Re: First Calculator on IRC
Post by: Juju on January 06, 2011, 01:26:38 am
An IRC client on a calculator is the awesomest thing you could ever do on a calculator. :D
Title: Re: First Calculator on IRC
Post by: merthsoft on January 06, 2011, 01:30:36 am
Are we sure this is the first? I know there's a telnet client out there for calcs, so it could've been done before.
Title: Re: First Calculator on IRC
Post by: Eeems on January 06, 2011, 01:31:42 am
Well I haven't seen any reference to it, so I'm assuming it's the first, I'll just change the title to "First Calculator on IRC Using gCn" if there is.
Title: Re: First Calculator on IRC
Post by: Juju on January 06, 2011, 01:35:11 am
Yes, but such IRC client would run like you use ssh to access another computer, while Kerm's client is specially made to go on IRC.

Now what's next after IRC? HTTP?
Title: Re: First Calculator on IRC
Post by: DJ Omnimaga on January 06, 2011, 01:49:49 am
Are we sure this is the first? I know there's a telnet client out there for calcs, so it could've been done before.
Well if that telnet client could do IRC then I guess maybe that one is the first, although apparently telnet irc is a pita to use.
Title: Re: First Calculator on IRC
Post by: calcdude84se on January 06, 2011, 07:48:19 am
The telnet program is here: http://www.ticalc.org/archives/files/fileinfo/141/14141.html (http://www.ticalc.org/archives/files/fileinfo/141/14141.html)
However, it requires a graphlink cable (the serial port kind) and an modem with a serial port.
Quote
VT100 Terminal program. Use with an external modem to get Internet access from your TI 83+ by dialing into a Unix shell. Requires an Official TI Graphlink cable. Not all external modems are compatible with the Graphlink.
Title: Re: First Calculator on IRC
Post by: holmes221b on January 06, 2011, 07:54:49 am
That's absolutely awesome!
Title: Re: First Calculator on IRC
Post by: aeTIos on January 06, 2011, 09:31:21 am
i only have on word for this:
WOW!!!  :o :o :o :o :o :w00t:
Title: Re: First Calculator on IRC
Post by: Munchor on January 06, 2011, 09:35:27 am
WOAH THIS IS AWESOME!!!! Congratulations Kerm!
Title: Re: First Calculator on IRC
Post by: JustCause on January 06, 2011, 09:52:57 am
Oh, Kerm.

This is way too good. Yet another limit broken!
Title: Re: First Calculator on IRC
Post by: Munchor on January 06, 2011, 10:01:40 am
Oh, Kerm.

This is way too good. Yet another limit broken!

We need a special chip/piece to do this, but yeah, another limit was broken!
Title: Re: First Calculator on IRC
Post by: KermMartian on January 06, 2011, 10:43:33 am
Cheers, everyone. :) I'll keep you all posted as I work on tweaking and improving all the different pieces, since this was swiftly thrown together as a proof-of-concept.
Title: Re: First Calculator on IRC
Post by: willrandship on January 06, 2011, 10:47:02 am
So, how many calcs can run off one arduino? One to one, or does it support higher?
Title: Re: First Calculator on IRC
Post by: Deep Toaster on January 06, 2011, 10:47:43 am
Wow.

All I have to say here.
Title: Re: First Calculator on IRC
Post by: Mrakoplaz on January 06, 2011, 10:50:37 am
Yeah, this is way too awesome. I'd never think something like this would even be remotely possible...

Just out of interest, what kind of chip is that on the board you have? Since it's only one chip, I'm guessing it's some simple pre-programmed microcontroller, maybe 8 bits, but that's just me guessing. The electronics nerd in me wants to know the truth ^_^

edit: Ooops, I am such a noob. I've somehow managed to miss the bolded description of the board in the other topic...
Title: Re: First Calculator on IRC
Post by: willrandship on January 06, 2011, 10:54:13 am
The arduino uses an Atmega168 (Diecemela), Atmega328 (Duemelanov), Atmega8(Original) or whatever's in the UNO. Also, the mega has higher versions.
Title: Re: First Calculator on IRC
Post by: JosJuice on January 06, 2011, 10:56:48 am
So, how many calcs can run off one arduino? One to one, or does it support higher?
You can connect a full CALCnet network to the Arduino and make all of the calcs connect to gCn, I think.
Title: Re: First Calculator on IRC
Post by: KermMartian on January 06, 2011, 11:15:59 am
So, how many calcs can run off one arduino? One to one, or does it support higher?
You can connect a full CALCnet network to the Arduino and make all of the calcs connect to gCn, I think.
JosJuice is correct.  The Arduino/gcnclient/gcn metahub system transparently connects CALCnet networks, making the constituent calculators think that they're on the same local CALCnet network.  The gcnIRC bridge works by pretending to be a one-calculator CALCnet network.
Title: Re: First Calculator on IRC
Post by: yunhua98 on January 06, 2011, 05:11:25 pm
AMAZING.
Title: Re: First Calculator on IRC
Post by: Snake X on January 06, 2011, 05:20:08 pm
O.O

now to make this work via a silver port ;D

Great job Kerm!!!

*cough* now to make BT (bittorrent/bluetooth however you wanna interpret BT :P ) for calcs *cough* lol
Title: Re: First Calculator on IRC
Post by: ztrumpet on January 06, 2011, 05:54:05 pm
Awesome Kerm!  Wow.  :w00t:  Wonderful. ;D

*cough* now to make BT (bittorrent/bluetooth however you wanna interpret BT :P ) for calcs *cough* lol
*cough* http://ourl.ca/6062/94889
Title: Re: First Calculator on IRC
Post by: turiqwalrus on January 06, 2011, 06:01:09 pm
This is very cool. I knew it would somehow be possible, but I never expected it so soon. Anyway, nice job KermM :thumbsup:
Title: Re: First Calculator on IRC
Post by: Ashbad on January 06, 2011, 06:02:12 pm
Ahh this is rubbish, I have been playing runescape and checking facebook on my calc since forever... :P








[/jk]
Title: Re: First Calculator on IRC
Post by: Snake X on January 06, 2011, 06:12:44 pm
Awesome Kerm!  Wow.  :w00t:  Wonderful. ;D

*cough* now to make BT (bittorrent/bluetooth however you wanna interpret BT :P ) for calcs *cough* lol
*cough* http://ourl.ca/6062/94889

ehh well i was actually going for bittorrent at really, then i remembered the other meaning for BT which would be bluetooth.
Title: Re: First Calculator on IRC
Post by: JoeyBelgier on January 06, 2011, 11:34:26 pm
I love old stuff to be combined, they form a source of new antique epicness (or something).
Great work, Kerm! I love your work, as always!
Title: Re: First Calculator on IRC
Post by: Lionel Debroux on January 13, 2011, 08:46:57 am
Quote
Now what's next after IRC? HTTP?
Maybe a compressed subset of the latter, in the drafting stage at IETF, namely CoAP ?
Title: Re: First Calculator on IRC
Post by: Deep Toaster on January 14, 2011, 12:09:27 pm
A few months later:

First Calculator in Starcraft Top 10
Title: Re: First Calculator on IRC
Post by: DJ Omnimaga on January 16, 2011, 03:31:24 pm
^ That would be WIN, although I know this would be impossible. :P
Title: Re: First Calculator on IRC
Post by: KermMartian on January 16, 2011, 10:24:03 pm
The better part of a decade of dreaming, a few months of solid CALCnet2.2 development, and a month of globalCALCnet (gCn) work has at last brought us to the first released beta of the software necessary to connect your calculators to the internet.  As previously discussed here on Cemetech, calculator networks connected over gCn appear to the constituent calculators as a single, unified local network, so that users can chat, play games, and even access internet resources over globalCALCnet.  For example, gCn has been connected to IRC (Internet Relay Chat) so that not only can gCn users chat with each other via their calculators from hundreds or thousands of miles away, but can also chat with IRC users around the world.  The two files below respectively contain the software necessary to connect your calculators to globalCALCnet, and information on the hardware needed to connect a CALCnet2.2 network to your computer.  With a simple Arduino microcontroller board and a few miscellaneous components, a CALCnet2.2 network of one, two, or a thousand calculators can be connected to a piece of computer software called gCnClient and thence to the rest of the world.  The gCnClient has been built for Windows, Mac OS X, and Linux, so anyone should be able to use it.  Full instructions are also included for programming your Arduino from any operating system to function as a gCn bridge.  Please test out this beta software, make sure it works well, post photos of your gCn bridge/hub devices, and most importantly, chat and play games over globalCALCnet!

Downloads
(http://www.cemetech.net/img/icon/dl.gif) gCn (globalCALCnet) Client v0.8 Beta (http://www.cemetech.net/programs/index.php?mode=file&path=/win/gcnclient.zip)
(http://www.cemetech.net/img/icon/dl.gif) On the Setup of a globalCALCnet (gCn) Client and Bridge (http://www.cemetech.net/programs/index.php?mode=file&path=/text/misc/buildgcn.zip)

(http://www.cemetech.net/img/projects/gcn/buildabridge.jpg)
Title: Re: First Calculator on IRC
Post by: DJ Omnimaga on January 16, 2011, 10:39:30 pm
Darn I really need an Arduino at one point. I read in some posts that some people would like to make Axe games that works with CALCnet when there's an Axiom for it.

Keep up the good work Kerm!
Title: Re: First Calculator on IRC
Post by: qazz42 on January 16, 2011, 10:43:06 pm
stinks you cannot go to other chans though, only cemetech.. (unless I am mistaken)
Title: Re: First Calculator on IRC
Post by: KermMartian on January 16, 2011, 10:58:50 pm
Thanks DJ! I would be happy to help anyone interested in making an Axiom to do so (there's actually only two functions; most of CALCnet is reading and writing the buffer memory locations instead of making calls), but I don't know of anyone who actually knows how to do so.  If you could point such people my way here, on Cemetech, or on IRC, I would appreciate it. :) @Qazz42, only because I haven't but a gCnIRCHub in any other channel to avoid possibly spamming other channels and annoying the administrators.
Title: Re: First Calculator on IRC
Post by: qazz42 on January 16, 2011, 11:00:51 pm
ah, good point then
/me waits for omni gCn hub so I can spam... err.. discuss intellectual matters
Title: Re: First Calculator on IRC
Post by: DJ Omnimaga on January 17, 2011, 12:26:40 am
/me stabs qazz42. :P

Chatting on Omni via a calculator would actually be fun :P
Title: Re: First Calculator on IRC
Post by: z80man on January 17, 2011, 01:22:32 am
Even better if you could chat in math class.  ::)
Title: Re: First Calculator on IRC
Post by: JosJuice on January 17, 2011, 01:39:43 am
Even better if you could chat in math class.  ::)
Sitting in Math class with a bunch of cables and an Arduino doesn't look suspicious at all ;D
Title: Re: First Calculator on IRC
Post by: z80man on January 17, 2011, 01:54:26 am
Even better if you could chat in math class.  ::)
Sitting in Math class with a bunch of cables and an Arduino doesn't look suspicious at all ;D
I sit near my teacher's desk and there is a wired router on the floor right behind me. I could use a bluetooth setup to connect my calc to the arduino and then to the internet.  ;)
Title: Re: First Calculator on IRC
Post by: Builderboy on January 17, 2011, 02:00:44 am
this is an amazing update!  Calculators with internet is certainly something that we have been dreaming about for a long time O.O
Title: Re: First Calculator on IRC
Post by: Juju on January 17, 2011, 03:42:07 am
I wonder if it would eventually work with a single, normal link cable.
Title: Re: First Calculator on IRC
Post by: DJ Omnimaga on January 17, 2011, 03:45:50 am
I'm not sure if it could, although it would be cool. However if I recall, the USB protocol is still pretty obscure, so I don't know how long it will take before someone can send data from his calc to the computer then an internet server via a SilverLink cable or an USB one.
Title: Re: First Calculator on IRC
Post by: Juju on January 17, 2011, 03:49:08 am
Well, you could use your USB port as a serial port with a USB to serial driver or something, then write and read to that port, it's so easy.

Edit: Under Linux you should open /dev/ttyUSB0, under Mac OS X, /dev/cu.usbserial###### or something like that, I think the real problem is under Windows, where it's kinda complicated.
Title: Re: First Calculator on IRC
Post by: JosJuice on January 17, 2011, 08:50:35 am
I'm not sure if it could, although it would be cool. However if I recall, the USB protocol is still pretty obscure, so I don't know how long it will take before someone can send data from his calc to the computer then an internet server via a SilverLink cable or an USB one.
I think Kerm tried to send data using the SilverLink, but it didn't work with CALCnet. The SilverLink apparently only recognizes the TI-OS protocol.

Direct USB might be possible to do, but that will probably happen later.
Title: Re: First Calculator on IRC
Post by: qazz42 on January 17, 2011, 09:53:09 am
/me stabs qazz42. :P

Chatting on Omni via a calculator would actually be fun :P

Well, just have kerm put the GcN hub in omni :P
Title: Re: First Calculator on IRC
Post by: KermMartian on January 18, 2011, 02:54:12 pm
Well, you could use your USB port as a serial port with a USB to serial driver or something, then write and read to that port, it's so easy.

Edit: Under Linux you should open /dev/ttyUSB0, under Mac OS X, /dev/cu.usbserial###### or something like that, I think the real problem is under Windows, where it's kinda complicated.
That's how the Arduino gCnBridge software & hardware works, but the Arduino has to do the translation to and from CALCnet 2.2 from/to serial.  You can't simply use the USB Silverlink or Direct USB link as a serial device.