MyAdvantech Registration

MyAdvantech is a personalized portal for Advantech customers. By becoming an Advantech member, you can receive latest product news, webinar invitations and special eStore offers.

Sign up today to get 24/7 quick access to your account information.

Taking USB Out to the Network Edge

23.10.2018

Although it was initially designed for office and IT environments, USB was quickly adopted by industry as well. Its simplicity and interoperability made it too useful to ignore. But, USB has builtin vulnerabilities that can cause trouble when it is used in realworld applications. For example, its ability to carry 5 VDC power to peripherals means that USB devices are very susceptible to ground loops, electromagnetic interference (EMI), and electrostatic discharges (ESD). That same 5 VDC power can lead to arcing and fire when cables become dislodged. USB’s effective range for a direct connection is just five meters and even using hubs only extends that to 30 meters. Additionally, USB was not designed to communicate with devices that employ older data communication protocols. 

Isolation: Electrical Events and USB 

Ordinary surge suppression will not address all the problems that can arise when USB is used in dangerous electrical environments. Surge suppression attempts to protect equipment by limiting spikes between the signal and ground line. But, if the ground line rises, as it does when a USB connection creates a ground loop, then surge suppression is unhelpful. You will need isolation. Isolation converts the signal on the two USB data lines to either pulses of light or an electrical field, then back again. It protects the 5 VDC USB power lines by transforming the 5 VDC USB power to AC, then back again. The data passes through, downstream devices can still use USB power, but unwanted electrical events end at the isolation zone. (See Figure 1.)

3


 

Figure 1. USB isolators protect data lines from surges, ground loops and ESDs.(B+B SmartWorx Models UHR402 and UH401-2kV )

 

Isolators do limit the USB data rate to “Full Speed” or 12 Mbps. USB devices natively default to Full Speed until they can negotiate a higher connection rate with the USB hub. A USB device initiates the negotiation by driving 17.78 mA into the D- data line and creating a “chirp.” If the hub is “High Speed” or 480 Mbps, it will respond by alternately injecting 17.78 mA into the D- and the D+ lines. 

When the device detects at least three of these return “chirps”, it knows that the hub is High Speed capable and it establishes the connection at the higher data rate. Isolators interfere with this negotiation when they convert the DC signal to AC at the isolation zone. The negotiation fails, and the USB devices default to Full Speed. That is slower than an unprotected connection would be, but it is fast enough for most applications and infinitely safer. 

If your application demands even higher data rates, consider USB 3.0 SuperSpeed devices. USB 3.0 is the third major USB standard revision and boasts SuperSpeed USB (“SS”) data transfer rates up to 5 Gbps – ten times faster than USB 2.0. USB 3.0 connectors can be distinguished from their USB 2.0 equivalents by the “SS” (Super Speed) initials and blue color of Standard A receptacles and plugs. 

Model USH304, from B+B SmartWorx is an ultra-rugged 4-port isolated USB hub providing 2,500 VDC isolation for upstream ports and 4 x downstream USB 3.0 SuperSpeed ports. Isolation usually downgrades USB speed to 12 Mbps but, that is not the case with this hub‘s transfer speeds up to 5 Gbps. It can be powered via the USB bus or an 10~30 VDC external power source. Includes lockable USB 3.0 cable.

4
 

Figure 2. isolated USB 3.0 SuperSpeed Hub provides 2.5kV isolation protection and super high data rates up to 5 Gbps. (B+B SmartWorx Model USH304)

 

Getting the Data Where It Needs To Go 

In office environments a typical USB cable hides behind a desk and need not be more than a meter or few of feet long. But, when data communications must cover the distances required in industrial applications, even a series of hubs will not provide USB enough range. 

The solution lies in extension and conversion. Imagine a remote security installation that includes a camera and a card reader. Installing a local PC to control the devices would be impractical. It would make more sense to connect the devices with a USB-over- Ethernet server, which would convert the USB data stream for TCP/IP transmission over Ethernet and create a network connection with the central office. (See Figure 3.)

1
 

Figure 3. USB to TCP/IP Ethernet Communication(B+B SmartWorx Model UE204)

 

The labor and materials involved in creating a new Ethernet cable connection can be expensive. But, sometimes the answer is already in place. Legacy coaxial cable or copper telephone cable runs can be repurposed with the installation of Ethernet extenders. (See Figure 4.) Ethernet extenders use DSL technology to convert data for transmission over the legacy copper cable and back again at the other end. The savings can be significant.

 
 

Figure 4. Ethernet Extenders - Copper, Fiber, DSL Communication(B+B SmartWorx Models 855-19722 and ADAM-6520L)

 

Conversion can also USB-enable legacy serial devices. (See Figure 5.) Manufacturers have designed and built USB-to-serial converters for virtually any application, from simple inline converters that connect a single device to heavy-duty, DIN-railmounted converters with multiple USB ports and the ability to connect and convert numerous USB data inputs.

1
 

Figure 5. USB to Serial Application(B+B SmartWorx Model 485USB9F-2W)

 

Making Firm Connections 

The USB standard addressed a weakness found in older cabling systems. USB cables protect their connector pins inside the connector housing, where it’s difficult to damage them. The older systems, with their exposed pins, were much more vulnerable. But the old cables were typically connected with thumbscrews, which made connections very reliable. USB cables are designed for quick and easy connections and disconnections. Vibration can work them loose, leading to data loss or downtime. If flammable substances are present USB’s 5 VDC power can cause arcing and fire. You should ruggedize your connections by using USB devices with high retention ports. The ports will look much like those you’d see in office-grade equipment, and making connections is just as quick and easy. The difference is in the safety factor. A typical high retention port can grip a cable firmly enough to resist 3.4 lbs of force. 

USB has its weaknesses, but that doesn’t mean it’s unsuitable for real world applications. With the right precautions – conversion, isolation and firm connections – you can safely use USB just about anywhere.

2