[TI-ASM] The CRC: Killer or just overkill?

Got questions? Got answers? Go here for both.

Moderator: MaxCoderz Staff

Post Reply
User avatar
DigiTan
Calc Master
Posts: 1069
Joined: Fri 04 Mar, 2005 12:52 am
Location: NW Wisconsin
Contact:

[TI-ASM] The CRC: Killer or just overkill?

Post by DigiTan »

I was considering the noise caused by (un)plugging the calc-to-calc cable and turned my attention to Milos Bazelides 16-bit CRC stuff. I want to be able to verify calc datastreams up to 1500 bytes (maybe in installments of 250) using either an oldskool checksum or his CRC, but only if the price is right. Speed will be a big factor and I don't even know if noise is a real issue on these cables. I was hoping some of the CLAP guys or somebody could shed some light on how bad link corruption can get.

Does CRC sound reasonable?
My diet consists of nails, code-stealers, and HP fans.
Projects:

Robot War [TI-82, TI Flash App]
Sonic the Hedgehog [Multiplatform]
User avatar
KermMartian
Calc Wizard
Posts: 549
Joined: Tue 05 Jul, 2005 11:28 pm
Contact:

Post by KermMartian »

In my opinion, it's complete overkill. All you need is a decent 8-bit checksum; the amount of noise on a calculator cable, if it's of a decent length and not constantly being hotplugged, is negligable.
Image Image Image
User avatar
tr1p1ea
Maxcoderz Staff
Posts: 4141
Joined: Thu 16 Dec, 2004 10:06 pm
Location: I cant seem to get out of this cryogenic chamber!
Contact:

Post by tr1p1ea »

I think that CRC might be a bit of an overkill. I guess the only way to determine if its needed is to do some testing. Its possible that there isnt much noise or that there is a very low failure rate as far as calc-to-calc cables are concerned.

It could however just be one of those 'for the sake of it' kind of things :).
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."
Image
Image
User avatar
Timendus
Calc King
Posts: 1729
Joined: Sun 23 Jan, 2005 12:37 am
Location: Netherlands
Contact:

Post by Timendus »

In my experience, there is pretty much no noise at all on the calculator port. So I'd agree it's overkill.
http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
User avatar
KermMartian
Calc Wizard
Posts: 549
Joined: Tue 05 Jul, 2005 11:28 pm
Contact:

Post by KermMartian »

Timendus wrote:In my experience, there is pretty much no noise at all on the calculator port. So I'd agree it's overkill.
O.o We agreed on something. pwnsome.
Image Image Image
User avatar
Timendus
Calc King
Posts: 1729
Joined: Sun 23 Jan, 2005 12:37 am
Location: Netherlands
Contact:

Post by Timendus »

Surprised me too, you used to be the one shouting that more checksums is t3h 0wnz0rs, versus me shouting it kills performance and adds redundant code... :)

Anyway, Digitan, what are you coding? You've made me curious :)
http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
User avatar
DigiTan
Calc Master
Posts: 1069
Joined: Fri 04 Mar, 2005 12:52 am
Location: NW Wisconsin
Contact:

Post by DigiTan »

Right now it's preliminary link stuff for the next Robot War installment. Hopefully with true plug-n-play so users won't have to halt things to startup multiplay anymore.
My diet consists of nails, code-stealers, and HP fans.
Projects:

Robot War [TI-82, TI Flash App]
Sonic the Hedgehog [Multiplatform]
User avatar
KermMartian
Calc Wizard
Posts: 549
Joined: Tue 05 Jul, 2005 11:28 pm
Contact:

Post by KermMartian »

/me points to CLAP or Cn2...
Image Image Image
User avatar
DigiTan
Calc Master
Posts: 1069
Joined: Fri 04 Mar, 2005 12:52 am
Location: NW Wisconsin
Contact:

Post by DigiTan »

Actually CLAP has enough similarities that it's probably already compatible with RW1. Or very close. I might go with CLAP to keep from having to reinvent the wheel.
My diet consists of nails, code-stealers, and HP fans.
Projects:

Robot War [TI-82, TI Flash App]
Sonic the Hedgehog [Multiplatform]
User avatar
Timendus
Calc King
Posts: 1729
Joined: Sun 23 Jan, 2005 12:37 am
Location: Netherlands
Contact:

Post by Timendus »

Do you plan on having two calculators communicating or more? If the answer is two, you might want to wait just a bit for the new library I'm working on that's specifically intended for use in fast games. If the answer is more, be warned that it is all highly experimental :)
http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
User avatar
DigiTan
Calc Master
Posts: 1069
Joined: Fri 04 Mar, 2005 12:52 am
Location: NW Wisconsin
Contact:

Post by DigiTan »

Party of 2 in this version. There's a some code to tell when the link isn't idling anymore. After that, it's in need of code to detect when another RW2 is on the link, codes to transfer 50-1500 bytes, and codes to detect a disconnect.
My diet consists of nails, code-stealers, and HP fans.
Projects:

Robot War [TI-82, TI Flash App]
Sonic the Hedgehog [Multiplatform]
User avatar
Timendus
Calc King
Posts: 1729
Joined: Sun 23 Jan, 2005 12:37 am
Location: Netherlands
Contact:

Post by Timendus »

It's all pretty much there, except for the detection of a disconnect. It can detect a problem with data exchange though, so you could use that. Would require a few little hacks though :)

Anyway, I'd better just get the damned thing working again so I can release it and you can play with it a bit.
http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
Post Reply