. .
Page 1 of 2 12 LastLast

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    I suspect that the underlying UDP ethernet protocol is nearly as error prone as the USB protocol, however, the TCP/IP layer which sits above it and does the error correction is (as has been pointed out) extremely robust so the end result is much better.

    I can see both sides of the argument but theory is worth nothing if it doesn't work in practise...

    For what it's worth, I've got a 3D printer which is extremely noise sensitive on the USB connection (to the point I now download the print to a memory card and print from that) and a USB CNC controller which I haven't had a problem with but there are dire warnings on the website about using a good quality cable - see https://www.youtube.com/watch?v=NUu9xwDfJ9k

  2. #2
    Jon.'s Avatar
    Location unknown. Jon. Last Activity: Has a total post count of n/a. Referred 6726 members to the community.
    I good example of usb technology would be an external hard drive ... and in my experience these never loose connection. So what is being compared here is not the technology but the boards themselves as proven everywhere, usb is extremely stable... o hang on my ethernet card needs resetting. damn thing screws up all the time. :P
    Last edited by Jon.; 08-06-2015 at 09:23 PM.

  3. #3
    Quote Originally Posted by FatFreddie View Post
    I suspect that the underlying UDP ethernet protocol is nearly as error prone as the USB protocol, however, the TCP/IP layer which sits above it and does the error correction is (as has been pointed out) extremely robust so the end result is much better.

    I can see both sides of the argument but theory is worth nothing if it doesn't work in practise...

    For what it's worth, I've got a 3D printer which is extremely noise sensitive on the USB connection (to the point I now download the print to a memory card and print from that) and a USB CNC controller which I haven't had a problem with but there are dire warnings on the website about using a good quality cable - see https://www.youtube.com/watch?v=NUu9xwDfJ9k
    Looking at a USB cable, it appears to use ground, power, and data in and data out. So, single-ended connections. Typical Ethernet connections use twisted-pair and, presumably, differential signalling. That suggests that Ethernet, at a hardware level, should be intrinsically more noise-resistant (although my own 3D printer has run for many, many hours over USB without any problem, although that is in a domestic environment without machine tools and EMI generators nearby). I think FatFreddie has it right with reference to TCP, though. A typical USB connection will be using an application-specific protocol that assumes a reliable connection (I know my 3D printer does this as I've looked at the code) so any data corruption or loss will be catastrophic, where the TCP protocol gives a highly reliable connection; any packet loss or corruption short of losing the whole connection will be detected and corrected by resending packets. Ethernet-connected motion controllers appear to use IP as they need network addresses and I presume they also use TCP over this - why shouldn't they? So, an error-correcting protocol over a more noise-resistant hardware connection gives so much more safety margin than a simple protocol over less-protected hardware. Be interesting to see the Ethernet-level error counts in a noisy environment, though.
    What you are losing, of course, is any claim to a real-time protocol, but as the network connection is being used to transfer, typically, high-level movement instructions which can be easily buffered, by buffering a couple of seconds'worth of data you can still withstand a short loss of communication during a noise burst, the TCP stuff does its job and makes sure the data gets there eventually, and the pulse generator bit of the motion controller chunters away happily working from buffered data.
    Conclusion - theorist meets practical experience, shakes hands, and goes off for a pint...
    Personally, I like learning from experience, and preferably someone else's experience 'cos that costs me less! But trying to relate that back to theory might give a bit more insight sometimes and lead to a better understanding and maybe a way to move forward. Cathedral builders used experience to create magnificent buildings but theory and better understanding of materials gives us skyscrapers. If that is an advance...

  4. #4
    Quote Originally Posted by Neale View Post
    Looking at a USB cable, it appears to use ground, power, and data in and data out. So, single-ended connections. Typical Ethernet connections use twisted-pair and, presumably, differential signalling. That suggests that Ethernet, at a hardware level, should be intrinsically more noise-resistant (although my own 3D printer has run for many, many hours over USB without any problem, although that is in a domestic environment without machine tools and EMI generators nearby). I think FatFreddie has it right with reference to TCP, though. A typical USB connection will be using an application-specific protocol that assumes a reliable connection (I know my 3D printer does this as I've looked at the code) so any data corruption or loss will be catastrophic, where the TCP protocol gives a highly reliable connection; any packet loss or corruption short of losing the whole connection will be detected and corrected by resending packets. Ethernet-connected motion controllers appear to use IP as they need network addresses and I presume they also use TCP over this - why shouldn't they? So, an error-correcting protocol over a more noise-resistant hardware connection gives so much more safety margin than a simple protocol over less-protected hardware. Be interesting to see the Ethernet-level error counts in a noisy environment, though.
    What you are losing, of course, is any claim to a real-time protocol, but as the network connection is being used to transfer, typically, high-level movement instructions which can be easily buffered, by buffering a couple of seconds'worth of data you can still withstand a short loss of communication during a noise burst, the TCP stuff does its job and makes sure the data gets there eventually, and the pulse generator bit of the motion controller chunters away happily working from buffered data.
    Conclusion - theorist meets practical experience, shakes hands, and goes off for a pint...
    Personally, I like learning from experience, and preferably someone else's experience 'cos that costs me less! But trying to relate that back to theory might give a bit more insight sometimes and lead to a better understanding and maybe a way to move forward. Cathedral builders used experience to create magnificent buildings but theory and better understanding of materials gives us skyscrapers. If that is an advance...
    Really well said Neale.
    Lee

  5. #5
    There is also the cable length issue with USB (just saying) ..Clive

  6. #6
    Quote Originally Posted by Neale View Post
    Cathedral builders used experience to create magnificent buildings but theory and better understanding of materials gives us skyscrapers. If that is an advance...
    Yes very well said but just one small detail.? . . . Those Skyscrapers where built by Master builders with years of experience.! Those builders would not use inferior products and therefore make sure those products where well tested by people experienced in testing material Theory.!!

    Theory and Experience work together for advancement but experience "TESTING" ultimately Wins and as the final say on what works and what doesn't.!!!
    Last edited by JAZZCNC; 09-06-2015 at 04:47 PM.

  7. #7
    Quote Originally Posted by JAZZCNC View Post
    Theory and Experience work together for advancement but experience ultimately Wins and as the final say on what works and what doesn't.!!!
    I'm not sure that I agree with that (I think that testing has the ultimate say) but that statement is only based on my experience and there's no theory to back it up...

  8. #8
    Would it be too presumptious that on a forum called mycncuk (which has a "mylittlepony" vibe to the name!), that most are hobbyists? In other words, not everyone wants to go to the far end of a fart over 'ethernet vs USB' (which would need a forum called IusemyCNCmachinetomillindustrialhardenedsteel.co.u k - which granted isn't as catchy)

    I'm a dabbler (I use my CNC to make pcbs) & I was pleased to see the back of Mach3 ...putting on those retro stick-on Bradley Wiggen-esque sidebruns & a pair of massive Lionel Blairs just to do a CNC session was a bit much. It was therefore like a breath of fresh air to migrate to cnc-usb, which uses erhm USB ....& I've not had one bit of bother with it. For the sake of balance, that's not to say others haven't has problems, which prompted the owner of cnc-usb to illustrate what a difference the actual usb cable can make...

    Last edited by HankMcSpank; 09-06-2015 at 04:17 PM.

  9. #9
    Jon.'s Avatar
    Location unknown. Jon. Last Activity: Has a total post count of n/a. Referred 6726 members to the community.
    My god i must be doing everything badly.. cheap ass 5m usb cable coiled up, wrapped around extension leads and all sorts and running off a laptop. I must be very lucky.

  10. #10
    Quote Originally Posted by Neale View Post
    I'm not sure that I agree with that (I think that testing has the ultimate say) but that statement is only based on my experience and there's no theory to back it up...
    Ok I'll amend it to what was meant and say Ultimately Experience testing wins.!!. . .

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. USB/Ethernet controller for Mach3/4 advice
    By paulus.v in forum Control Hardware & Systems
    Replies: 17
    Last Post: 17-02-2015, 09:37 PM
  2. CSMIO/IP-M vs Ethernet SmoothStepper (Begone foul parallel port!)
    By Greeny in forum Control Hardware & Systems
    Replies: 20
    Last Post: 14-11-2013, 11:59 PM
  3. USB and Ethernet Mach3 motion controller PLCM-E3
    By Purelogic R&D in forum Manufacturer News
    Replies: 39
    Last Post: 29-12-2012, 09:38 AM
  4. Pros and cons of climb milling in wood
    By Richie in forum Wood Finishing Tips & Tricks
    Replies: 15
    Last Post: 14-06-2012, 05:09 PM
  5. Types of Ballnut and preload, questions - pros & cons ?
    By Jon S in forum Lead Screws, Nuts & Supports
    Replies: 1
    Last Post: 16-01-2012, 03:39 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •