Download off-the-shelf embedded-network connectivity
Transcript
hands-onproject Embedded-network connectivity ed data, maximum throughput is less important (see sidebar “Testing throughput”). Also, if your application isn’t complex, footprint isn’t critical, because you don’t need a lot of headroom. Thus, my primary concern became which development environment could most efficiently help me develop my application (see sidebar “Other considerations”). AT A GLANCE 컄 The embedded-TCP/IP market has indeed reached a point at which TCP/IP is an off-the-shelf product. 컄 Your evaluation is based on what you see—not what’s actually there. 컄 One key differentiation among current systems is the available application library. EQUIPMENT CHECKLIST As a strong believer in a positive outof-the-box experience, when I finally made time to look at an evaluation board, I wanted to begin the evaluation—not discover that I was expected to supply a critical piece of equipment that I didn’t have handy. For example, some kits come with an Ethernet cable; some don’t. If you’re going to directly connect the evaluation board to your computer, however, you need a crossover cable. If you connect through a hub or router, you need a standard cable. Using the wrong cable can set you back for a while until you figure out what you’ve done. One way to improve your out-of-thebox experience is to check the kit when it arrives; don’t wait until the day you want to use it. One advantage of evaluating several kits is that one kit usually includes the “missing” part from another. (Before you start mixing kits, however, tag each component with a sticker, so that you remember which cable came from which kit.) One difficult-tolocate piece of equipment was an external modem that could connect to the 컄 If you work with only one evaluation kit, you’ll learn whether you like it, but you won’t have any idea whether you should expect more. Connect One’s iChip Internet-controller TCP/IP chip mediates the connection between a host device’s processor and the Internet. evaluation board over a serial port, so I could test a PPP (Point to Point Protocol) connection through the phone line to an ISP (Internet-service provider). I found one at a local store for the surprising cost of $100. If you have more time to secure a modem, you can probably find one in your garage or over the Internet for less. Several companies offer a variety of boards with names such as “evaluation” and “developer” or “standard” and “advanced.” In some cases, the difference lies in software alone. The evaluation kit, for example, might provide only binaries and a subset of the development tools. Some differences lie in hardware: RAMbased boards, unlike flash-based boards, lose their code image when you crash and have to power down. The developer’s kit may also include an emulator for setting breakpoints and capturing code traces. In some cases, the difference in price is small between the standard and the advanced kits. In general, developing code for a standard board might take somewhat longer than it would for an advanced kit, given limited tools and lack of debugging hooks. It might be worth the extra bucks to be able to see the entire tool suite, because the tools’ usefulness will almost surely be a major factor in your final selection. Some features, such as PPP, SNMP (Simple Network Management Protocol), or a real-time operating system, may be optional and require a separate purchase. You’ll also often get better tech support with an advanced kit. Most evaluation kits cost less than $500. Some kits, however, come in at several thousand dollars. In many cases, the vendor raises the price to filter out DELVING INTO THE STACK In previous years, networkenabling a device required intimate knowledge of the TCP/IP (Transmission Control Protocol/Internet Protocol) stack and direct system calls to manipulate and manage it. Today, TCP/IP is pretty much an off-the-shelf technology, meaning that you can link to the library, make a few calls, and have connectivity. Unless you stumble across some weird corner case of TCP/IP or stress the stack in an unanticipated way, 48 edn | November 14, 2002 you probably won’t have to actually know anything about TCP/IP to get results. Additionally, if the vendor has provided adequate sample/ demo applications, you should be able to strip down these applications to their basic components to determine the stack calls you have to make to send or receive packets, FTP (File Transfer Protocol) files, POST and GET data, and so on without understanding what any of those calls really do. Are there reasons to delve into the stack? I’ve heard the most popular use of stack source code is to learn TCP/IP fundamentals. If you don’t have this burning desire, then you don’t necessarily need access to source code. More rare reasons include optimizing the source code to squeeze more performance from the chip either to increase the transmission rate or to free up headroom for application code; adding protocols that the stack doesn’t support; implementing proprietary data schemes;, and integrating third-party code, such as security and encryption functions. In some cases, you can use a stub function—an empty function called by the stack, for example, before it sends or packetizes data—to implement such functions without understanding or breaking into the stack. An additional benefit of not breaking into the stack is that you need not recertify the stack code. www.edn.com