
It's sometimes pretty difficult to discuss these things in text. When you're face to face with someone you can make all kinds of gestures and drawings to explain how things should work...
Moderator: MaxCoderz Staff
Code: Select all
ld hl,gbuf+12*whatever+whatever
ld a,(hl)
or some bit mask like %01000000
ld (hl),a
Timendus wrote:I'll probably introduce a parity bit with every byte I send, indicating how many (an even or an odd number) bits in the sent byte should have been one. If the parity bit doesn't agree with the data on the receiving end, then there's an odd number of bits flipped. If an even number of bits have flipped though, a parity bit will not be enough. But since I check parity for every byte, and only one byte in a stream has to be corrupt for the transfer to go wrong, I guess that'll solve itself.
Thanks!CompWiz wrote:If I ever finish my Advance Wars clone(don't hold your breath), I'll be sure to put the multi-calc linking in
It is indeed. Potentially fast though, and pretty much required for linking >2 calculators... Another way to do things would be tip-ring = 1, ring-tip = 0 but that too would have a predefined speed that the receiver has to adapt to.benryves wrote:I always went under the assumption that a clocked protocol is a pain with the TI, what with no accurate timing hardware (until recently, that is).
Thanks! I think I will.Feel free to use my routines, by the way.
With that you mean that the clock is generated by the keyboard and data can be read on the falling edge, right? So I take it Kerm claiming he's using "AT-style fastclocking" - whatever that may be - can safely be ignored?The AT protocol is fact clocked.
I have seen those routines, if I'm not mistaken they use the same protocol as the CLAP currently does. He probably brought the timing further to the edge to make it deserve it's nameHave you looked into MV's "Tachyon" link? I can't find any mention of it on ticalc.org, but have it on my HDD (along with some rather ancient documents by yourself) if you wish to look at it.
Nope. That part means that there's a negligible chance of errors: I haven't seen any bits flipping on hardware yet, even though my link cables are horribly amateuristic, and if one bit in a stream would happen to flip it'll detect it. If two bits in a byte flip, there'll probably be other affected bytes that flag the stream as invalid. So I estimate the chances of data errors at less than one in a million.Saibot84 wrote:Would it be safe to assume that the part about "that'll solve itself" means that you will also calculate a checksum for the transfered data?
Ah, yes... You wouldn't happen to have read my four year old article would you?Also, I believe I may have heard that there is a theoretical limit to either the length of the link cables and/or the number of calculators connected in a "network"... something about it being due to the amount of current being too high, or too low... am I recalling this correctly, and how are you planning to take this into account?
Both are possible, and if you scroll back a few pages in this topic you'll see drawings for both settings. You could even use them intertwinedOne more thing, are you going to be "requiring" a linking "hub" or are you thinking of simply having each calc use a 2-1 adapter to add a new calculator to the network?
Maybe you can. I'm guessing it would work pretty well, if it fits in the link port. Anyway, it's pretty easy to adapt a link cable yourself, or make a simple hub, so it shouldn't be a problem anyway.Saibot84 wrote:Maybe we can find a 2-way splitter like that, but for 2.5mm?
How exactely did you have that in mind..?<crazy idea>would it completely negate your efforts to speed up the link protocol if you separated the linking into more than one stream?</crazy>
Yes, that's what I thought you meant. So it's identical to the CLAP in it's current state in that aspect.By "AT-style fastclocking I meant that the sender determines transfer rate and assumes that the receiver can keep up.
Heh, no wayHey Tim, did you ever consider making network with 84's? It should be a lot easier.