Author Topic: KnightOS Transfer Protocol  (Read 24280 times)

0 Members and 1 Guest are viewing this topic.

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: KnightOS Transfer Protocol
« Reply #15 on: November 28, 2010, 10:25:28 pm »
Correct. In fact, bits 4 and 5 of input from port 0 read the last bits you wrote to 0 and 1.

Edit:
In general, if A is the last value written to the port on one calc and B is the last value written to the port on the other calc, the read value from bits 0 and 1 on both calcs is (~A & ~B), or ~(A | B), whichever you like better.
« Last Edit: November 28, 2010, 10:31:22 pm by calc84maniac »
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

SirCmpwn

  • Guest
Re: KnightOS Transfer Protocol
« Reply #16 on: November 28, 2010, 10:34:47 pm »
Thank you for the help.  I will revise the protocol with this in mind later.

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: KnightOS Transfer Protocol
« Reply #17 on: January 12, 2011, 10:11:18 pm »
Did you ever finish this protocol? Is there a revised document up somewhere?

SirCmpwn

  • Guest
Re: KnightOS Transfer Protocol
« Reply #18 on: January 12, 2011, 10:15:13 pm »
Yes, but I've long lost it.  The protocol doesn't apply to USB, though, and I have to think of a better way to do it asyncronously.  CalcNet may also be ported.

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: KnightOS Transfer Protocol
« Reply #19 on: January 13, 2011, 10:51:59 pm »
I think you should be able to simply have one line be the clock and the other be the actual data.  That seems very fast in my opinion.  You could have the calcs fight over control, or you could have packets with a request to send or something.  I guess you would just have to know which one did the clock and who was supposed to be reading.

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: KnightOS Transfer Protocol
« Reply #20 on: January 13, 2011, 10:58:08 pm »
Graph, the clock and data line setup you suggest is the basis of what I2C uses. Only problem with I2C is that the standardized speeds are too high for our calcs. :(
A slowed-down version would be feasible, though.
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

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: KnightOS Transfer Protocol
« Reply #21 on: January 13, 2011, 11:14:01 pm »
Yay for the calcnet support! I wonder if Axe could get ported too :P not likely, unless you recreate all the bcalls, right?

SirCmpwn

  • Guest
Re: KnightOS Transfer Protocol
« Reply #22 on: January 13, 2011, 11:40:06 pm »
No, Quigibo has expressed interest in porting Axe.  And TI-Basic support is planned.

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: KnightOS Transfer Protocol
« Reply #23 on: January 23, 2011, 03:33:06 pm »
Major necropost I know, but I was bored so I made up a File Format for the computer that KOS could use.
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





SirCmpwn

  • Guest
Re: KnightOS Transfer Protocol
« Reply #24 on: January 29, 2011, 01:41:42 pm »
Thanks Binder News, but the great thing about KOS is that you don't need to define a file format - you could transfer any file whatsoever to your calculator as if it were a flash drive.

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: KnightOS Transfer Protocol
« Reply #25 on: January 29, 2011, 02:03:50 pm »
Really? That is pretty cool. Well, I'm still waiting for the main release... :)
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





SirCmpwn

  • Guest
Re: KnightOS Transfer Protocol
« Reply #26 on: January 29, 2011, 02:06:18 pm »
I am presently unable to work on it, but I promise I'll get more progress as soon as I can.

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: KnightOS Transfer Protocol
« Reply #27 on: January 29, 2011, 02:14:39 pm »
That's sad that you can't work on int, but I hope you will be able to soon.
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: KnightOS Transfer Protocol
« Reply #28 on: January 29, 2011, 06:06:19 pm »
Thanks Binder News, but the great thing about KOS is that you don't need to define a file format - you could transfer any file whatsoever to your calculator as if it were a flash drive.
Is that planned, or already finished? I need to work on that, since I can't work on TAO, atm. (Technically I am working on it, just not coding the massive amounts of USB fun stuff.)

SirCmpwn

  • Guest
Re: KnightOS Transfer Protocol
« Reply #29 on: January 29, 2011, 06:37:03 pm »
Well, the ability to have any file is done, but the flash drive interface is planned.