Author Topic: Data Transmission question  (Read 5671 times)

0 Members and 1 Guest are viewing this topic.

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Data Transmission question
« on: March 22, 2011, 07:29:36 pm »
I just don't get anything related to it. D:
How does that exactly work?
Sig wipe!

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Data Transmission question
« Reply #1 on: March 22, 2011, 07:33:29 pm »
Do you mean serial transfer or USB? The former is fairly simple, but USB protocols are a nightmare to learn.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Data Transmission question
« Reply #2 on: March 22, 2011, 07:34:30 pm »
Is calc-to-calc( you know, getCalc stuff) serial transfer?
Sig wipe!

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: Data Transmission question
« Reply #3 on: March 22, 2011, 07:38:58 pm »
Is calc-to-calc( you know, getCalc stuff) serial transfer?
Yes, it's usually considered that.  Although USB can go calc-to-calc too.

Ashbad

  • Guest
Re: Data Transmission question
« Reply #4 on: March 22, 2011, 07:42:19 pm »
I am completely oblivious to all terms in all facts of life (you would be surprised at how I do in my honors geometry class when I call shapes such as trapezoids 'parallel median base quadrilaterals' and isosceles triangles 'bicongruent triple angular entities') but I can somewhat explain how calc to calc transfer works in a way.

Calc to calc is actually a pretty simple process -- as far as I know, a cable sends pure, raw data in 8 bit form across the wire.  The thing is, this can prove to create bad transfers, because if the two calcs are not synced up at the same frequency (again, IDK the term) then you might only transfer half the data correctly.  But, depending on how you detect byte sending, you might make the calculator wait until it receives a non zero (or sometimes a non -1) from the opposite end.  And, when it does receive it, it might send back a value such as 1 to the output machine to say 'I got it already!' and then output machine will then proceed to the next 8 bit value until it's all done.

USB, however, I believe that is a whole different story.  I don't plan on explaining it or even learning about it, I've heard it's extremely complex.

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Data Transmission question
« Reply #5 on: March 22, 2011, 07:50:45 pm »
Sending 8-bit values? You must be dreaming. The serial port is designed to send only 1 bit at a time, which is a large part of what necessitates the need for the special Get() and Send() functions.

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Data Transmission question
« Reply #6 on: March 22, 2011, 07:54:46 pm »
Ashbad, for comparison, learning USB protocols without using a pre-made library is like recreating OpenGL in machine code without system calls. Advanced networking protocols are probably the most difficult [normal] form of programming.

As for Serial, Runer is right. It's one bit at a time, over frames of a certain number of bits (8, I think). However, there are networking protocols involved in serial transfer too. It's not just "send bits whenever you feel like it," though that's certainly possible to do.

The above is what I have been lead to believe in my limited studies of serial networking. If anyone else is more knowledgeable, take their advice.
« Last Edit: March 22, 2011, 07:56:24 pm by Qwerty.55 »
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ