Shop OBEX P1 Docs P2 Docs Learn Events
tvIRC client for propeller — Parallax Forums

tvIRC client for propeller

Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
edited 2008-04-02 06:20 in Propeller 1
I'm been driving the regulars crazy at #propeller for the last couple days
(sorry guys! it was for a good cause!) with the testing of the following IRC client...

TV IRC CLIENT

This is an AI_Generic version of Harrison's VGA client with a some mods/hacks,
a little color, and a lot of crunching to get it to fit into the AIGENERIC text client.
I believe I have most of the bugs beat down on this.

Operational notes:

Change the IP address, etc to match your PropNIC(or compatible) network settings.
The client will allow you to type up to 80 visible characters at a time in the bottom
two lines of the screen. (More are possible, but invisible, due to screen size constraints.)
At 22 lines, the display portion of the screen, clears, and moves back to the top of the
window. (Sorry, AIGENERIC isn't a windowed client, *yet*) This was a good way to
deal with this.

Enjoy! Thanks Harrison for a great base!

OBC

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?

Getting started with the Protoboard? - Propeller Cookbook 1.4
Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
Got an SD card? - PropDOS
A Living Propeller FAQ - The Propeller Wiki
(Got the Knowledge? Got a Moment? Add something today!)

Post Edited (Oldbitcollector) : 3/19/2008 1:35:42 AM GMT


Comments

  • dfletchdfletch Posts: 165
    edited 2008-03-18 04:57
    Super cool!

    Now all the PropNIC owners should be able to get online really easily. And from their living rooms!

    See you there.

    Cheers,

    --fletch

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Join us in the Un-Official Propeller IRC channel: irc.freenode.net #propeller
    Newbies, oldies, programmers, math professors, and everyone in-between welcome!
    Propeller IRC howto
    spinc - open source Spin compiler
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2008-03-19 01:34
    Updated tonight with some "keepalive" code from Harrison.

    New update is now attached to top thread.

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Getting started with the Protoboard? - Propeller Cookbook 1.4
    Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
    Got an SD card? - PropDOS
    A Living Propeller FAQ - The Propeller Wiki
    (Got the Knowledge? Got a Moment? Add something today!)

  • dfletchdfletch Posts: 165
    edited 2008-03-19 19:12
    You know, it's actually quite cool watching this being built and worked on by several people in real time.

    We need to get more projects rolling over IRC. Such a great way to collaborate!

    A while back, stevenmess2004 (I believe) had the idea of a collaborative IDE that runs on the prop. Such cool stuff!

    Cheers,

    --fletch

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Join us in the Un-Official Propeller IRC channel: irc.freenode.net #propeller
    Newbies, oldies, programmers, math professors, and everyone in-between welcome!
    Propeller IRC howto
    spinc - open source Spin compiler
  • computer guycomputer guy Posts: 1,113
    edited 2008-03-20 06:10
    Nice work OBC.
    Have stopped work on mine as yours is clearly better than a noob like me could do. smile.gif
    OBC said...
    Sorry, AIGENERIC isn't a windowed client, *yet*
    Does this mean that you are planning on making it windowed or are you hoping someone else will?

    Keep up the good work. smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Check out my robot using the propeller RECONAUTOR
    If you like my avatar then check this out Propeller Domed Stickers for sale

    Post Edited (computer guy) : 3/20/2008 7:20:58 AM GMT
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2008-03-20 14:12
    That's a feature I am planning to add to the AIGeneric driver.
    Unfortunately, compared to many here, I'm still in noob status
    as well, so it may be a bit until I get enough .spin down to improve that....

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Getting started with the Protoboard? - Propeller Cookbook 1.4
    Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
    Got an SD card? - PropDOS
    A Living Propeller FAQ - The Propeller Wiki
    (Got the Knowledge? Got a Moment? Add something today!)

  • computer guycomputer guy Posts: 1,113
    edited 2008-03-28 12:26
    can't wait for it to become windowed.
    Then is will truly be the best way to show text on a tv. smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Check out my robot using the propeller RECONAUTOR
    If you like my avatar then check this out Propeller Domed Stickers for sale

    Building Blocks To The Propeller Chip
  • computer guycomputer guy Posts: 1,113
    edited 2008-04-01 08:04
    OBC,

    I am able to receive messages fine, however if I try to send a message it never gets through.

    Is this because I am using a 6mhz crystal?
    The enc28j60 driver says
      ' Since some people don't have 25mhz crystals, we use the cog counters
      ' to generate a 25mhz frequency for the ENC28J60 (I love the Propeller)
      ' Note: This requires a main crystal that is a multiple of 25mhz (5mhz works).
    
    



    Thank you smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Check out my robot using the propeller RECONAUTOR
    If you like my avatar then check this out Propeller Domed Stickers for sale

    Building Blocks To The Propeller Chip
  • stevenmess2004stevenmess2004 Posts: 1,102
    edited 2008-04-01 09:49
    Possibly, check where they set up the timer and see what mode it is using. If it isn't set to a PLL mode try changing it to a PLL mode. This may give a better clock signal.
  • computer guycomputer guy Posts: 1,113
    edited 2008-04-01 10:49
    Just realised that the propnic has an onboard 25mhz crystal, so this isn't the problem.
    Thank you anyway steven. smile.gif

    Anyone have any idea as to why this is happening?

    Thank you smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Check out my robot using the propeller RECONAUTOR
    If you like my avatar then check this out Propeller Domed Stickers for sale

    Building Blocks To The Propeller Chip
  • stevenmess2004stevenmess2004 Posts: 1,102
    edited 2008-04-01 10:56
    Try checking what ports it uses and what your firewall (in your modem) is setup for.
  • computer guycomputer guy Posts: 1,113
    edited 2008-04-01 11:11
    I don't have an outgoing firewall.
    I can receive messages fine, it is only outgoing.

    Thank you smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Check out my robot using the propeller RECONAUTOR
    If you like my avatar then check this out Propeller Domed Stickers for sale

    Building Blocks To The Propeller Chip
  • computer guycomputer guy Posts: 1,113
    edited 2008-04-01 11:46
    I managed to get the quit command to work after adding the "/" to the front.
    This leads me to believe that it is a syntax error causing the problems.

    OBC, have you got more recent code?

    Thank you smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Check out my robot using the propeller RECONAUTOR
    If you like my avatar then check this out Propeller Domed Stickers for sale

    Building Blocks To The Propeller Chip
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2008-04-01 14:15
    No, I haven't written anything more recent to this, but I'm curious what your propboard setup is.
    The ESC code was migrated from the original VGA client that Harrison wrote, and I've never
    had issue with it. What pins is your keyboard located on?

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Getting started with the Protoboard? - Propeller Cookbook 1.4
    Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
    Got an SD card? - PropDOS
    A Living Propeller FAQ - The Propeller Wiki
    (Got the Knowledge? Got a Moment? Add something today!)

  • computer guycomputer guy Posts: 1,113
    edited 2008-04-01 20:49
    keyboard 12-13

    I might have to try different pins on the prop.
    I am using a Hybrid board.

    Thank you smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Check out my robot using the propeller RECONAUTOR
    If you like my avatar then check this out Propeller Domed Stickers for sale

    Building Blocks To The Propeller Chip
  • computer guycomputer guy Posts: 1,113
    edited 2008-04-02 05:02
    When I connect to the #propeller channel the act light on the propnic goes mad, is this normal?

    I tried a different pin however this didn't help.
    I can get it to connect, set nick and then join #propeller. However after that no outgoing coms work.

    Thank you smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Check out my robot using the propeller RECONAUTOR
    If you like my avatar then check this out Propeller Domed Stickers for sale

    Building Blocks To The Propeller Chip
  • Harrison.Harrison. Posts: 484
    edited 2008-04-02 05:57
    Yes, it is normal for the activity light to blink alot for the first 5 seconds or so of the connection. This occurs because the server is sending the motd and other text to your client. It takes a long time to finish because my tcp stack uses a default tcp window of 128 bytes.

    I'm not sure why the irc client isn't working for you. Your internet connection may be suffering packet loss, which can cause the tcp sockets code to fail. I'm still working on a fix for this.
  • computer guycomputer guy Posts: 1,113
    edited 2008-04-02 06:20
    Resolved via IRC.
    Thanks to Harrison I have got my prop talking on IRC.
    The keepalive code needed changing in order to get it to work.
    Changing
    keepalive := (clkfreq * 25) + cnt
    
    



    to

    keepalive := (clkfreq * 15) + cnt
    
    



    Solved the problem.

    Thank you Harrison smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Check out my robot using the propeller RECONAUTOR
    If you like my avatar then check this out Propeller Domed Stickers for sale

    Building Blocks To The Propeller Chip
Sign In or Register to comment.