使用Arduino+Ethernet Shield配置Thin Client(廋客户机/精简计算机)构建环境

所需积分/C币:10 2014-04-15 14:32:40 3.14MB PDF
收藏 收藏 2
举报

使用Arduino+Ethernet Shield配置Thin Client(廋客户机/精简计算机)构建环境
Configuring the Thin Client Build Environment(Arduino+ Ethernet Shield) Figures Figure 1: A minimalist Due"enclosure Tables Table 1: Acronyms and abbreviations 1面 4 Table 2. Related documents 5 Allseen alliance 1 Preface This document specifies the hardware and tools that are required to set up an environment for using and developing AllJoyn Thin Client (AJTC)applications on the Arduino due electronics prototyping platform with an Ethernet Shield module, and provides detailed instructions for acquiring and setting up that environment 1.1 Purpose This document describes how to configure an arduino due microcontroller board with an arduino ethernet shield module and how to create a build environment that allows one to use AllJoyn Thin Client library functions to communicate with other AllJoyn-based components running on, for example, smartphones, tablets, and personal computers 1.2 Scope This document will be appropriate for anyone interested in adding Arduino microcontroller modules to peer-to-peer networkS, including application developers, system software developers, network specialists, device manufacturers, and systems managers We assume a basic understanding of embedded systems and Arduino programming in particular, and we assume that the reader understands the allJoyn system to the level described in ntroduction to A∥Joyn 1.3 Acronyms and abbreviations Table 1 is a list of acronyms and abbreviations used in this document Table 1: Acronyms and abbreviations Term Definition AJSC AllJoyn Standard Client ATC AllJoyn Thin Client IDE Integrated development Environment UDP User datagram protocol 1. 4 Related documents Related Documents provides a list of supplemental documents that relate to the information in this guide Allseen alliance Configuring the Thin Client Build Environment(Arduino+ Ethernet Shield) Preface Table 2: related documents Location Title www.allseenalliance.org Introduction to Alljoyn www.allseenalliance.org Introduction to the AllJoyn Thin Client www.allseenalliance.org AlJoyn documents available for download arduino. cc/en/Guide/Introduction Introduction to arduino arduino. cc.en/ Guide/ HomePage Getting Started with Arduino arduino. cc. en/Guide/Arduino Due Getting Started with the Arduino due www.allseenalliance.org Configuring the Build Environment (Windows XP and Windows 7) Allseen alliance 2 Background The allJoyn framework provides an environment for distributed applications running across different device classes with an emphasis on mobility, security, and dynamic configuration The AllJoyn framework comes in two fundamental forms: 1)a full-featured environment designed for desktop and laptop computers, tablets, and mobile devices; and 2)a smaller environment optimized for embedded systems such as sensor nodes or devices participating in the Internet of Everything. The full-featured environment is sometimes called AllJoyn Standard Client(AJsC)in order to differentiate it from its smaller, lighter-Weight cousin AllJoyn Thin Client(ATc) In order to develop end-to-end applications using the arduino due electronics prototyping platform, one will typically need to install and use development environments for both of these systems. AllJoyn Thin Client running on the Arduino due will provide a lightweight implementation of the allJoyn system suitable for the sensor/actuator nodes in the arduino embedded system environment, and AllJoyn Standard client will provide an environment suited for accessing or controlling the sensorlactuator nodes in a desktop, laptop tablet or mobile device environment. Typically the controller communicates with the sensor/actuator over infrastructure-mode Wi-Fi(a standard Wi-Fi Access Point) The arduino side of the equation is an embedded system environment with an associated Integrated Development Environment (IDE) dedicated to providing an open-source electronics prototyping platform. The Arduino IDE can be run on Windows, Linux, or Mac OS as of this writing. We will assume in this guide that the host computer is running Windows. Note that the choice of host system may influence other decisions such as which third-party JTAG debugger to buy since some are supported only on specific platforms) The standard AllJoyn wire protocol implemented by the atc library allows embedded systems to participate in AllJoyn distributed applications or sensor networks composed from either a or atC systems. The arduino due environment will allow for quick prototyping of embedded devices intended to work in the so-called Internet of Everything and the allJoyn framework will provide the glue to easily connect devices in a standard way. The AllJoyn framework runs on many different platforms, such as Windows, Linux, Android lOS, and os-X; it provides many language bindings suitable for developing projects in C, C++, C#t, Java, and objective-C. We expect that the atc library will be used on Arduino devices to implement wireless sensor/actuator nodes, and allJoyn Standard Client will be used on smartphones, tablets, or desktop computers to provide the overall control or human interface functions that will make use of the capabilities provided by Arduino devices Therefore, as implied above, the second piece of development environment required to choice of plattorm used to implement the control functionality Instructions are provided o implement an entire working system will be the development environment suitable for the here for installing and verifying operation of an arduino due with ethernet shield running the AllJoyn Thin Client communicating with a AllJoyn Standard Client system developed on the Windows host platform and targeted at the windows host using the Java language Allseen alliance Configuring the Thin Client Build Environment(Arduino+ Ethernet Shield) Background These instructions can be adapted for development on other hosts/targets linux and os-X for example)with other devices(Android and iOS, for example) and languages(C, C#, or Objective-C, for example) We do provide sample programs illustrating simple atc interfaces in our AllJoyn Standard Client releases on various platforms. You are encouraged to peruse these samples for guidance and best-practices for developing your own Internet of Everything sensors/actuators based on the arduino due and applications based on your choice of platform There are two documents located on allseenalliance org which will prove quite valuable in understanding the AllJoyn system and the allJoyn Thin Client. We recommend reading the Introduction to AllJoyn and the introduction to AllJoyn Thin Client documents, which can be found in the Documents section of the Documents and downloads page at allseenalliance.org(www.allseenalliance.org) 3 Required Hardware AllJoyn Thin Client (AJtC)is part of a software framework for distributed systems. As such it requires no hardware per se (the thin client can be run on a desktop computer-it is just software), but in order to use AJTC as envisioned, acquiring third-party hardware tools, and development environments will be required The allJoyn system currently supports the Arduino Due open source hardware electronics prototyping board, which is the subject of this tutorial The Arduino due is freely available from many suppliers Several possibilities are listed below http://store.arduino.cc http.:/www.mouser.com/productdetaiL/arduino ■htt:/ WWw,amazon. con The AllJoyn system is primarily oriented toward proximity-based wireless communication so it would be desirable to enable support for the Arduino Wi-Fi Shield; however, support for User Datagram Protocol(UDP) is not provided as of the first release of Atc for Arduino The allJoyn framework does require UdP for service discovery, so Ethernet shield is the environment of choice. This configuration does allow for wired connection to OpenWRT-based routers, so it is possible to construct useful systems from Ethernet-based microcontrollers. We anticipate that support for UdP in the wi-Fi shield will be released soon, at which time AllJoyn sketches can take advantage of the Wi-Fi Shield Note UDP support is available on a development branch of the arduino libraries but is not supported in the current Arduino release The arduino ethernet shield is also freely available from many suppliers. Several possibilities for acquiring an Ethernet Shield are http://store.arduino.cc http.:/www.mouser.com/productdetaiL/arduino http://www.amazon.com A standard ethernet patch cable is required to connect the arduino ethernet shield to your network A standard Micro-USb cable is required to connect the arduino due to your host computer It is possible to write code for the arduino due using only printf-style debugging. However, for larger or more complicated projects, it can be quite useful to use a dedicated JTAG debugger. One example of such a debugger that the AllJoyn team uses is the Atmel SAM-ICE. The Atmel SAM-ICe is a JTAG emulator designed for Atmel ARM cores such as the one running the Arduino due. It connects via USB to a PC running Windows, and to the arduino due through a jtag connector Allseen alliance Configuring the Thin Client Build Environment(Arduino+ Ethernet Shield) Required Hardware Note The atmel software currently only runs on Windows. If you are developing on Mac or Linux, a different choice of jTAG debugger may be required The Atmel SAM-ICE is also freely available. TWo possibilities are http://store.atme/.com http://www.mousercom/productdetailLAtmel The jTAG connector on the arduino due uses the ARM 10-pin mini-JTAG interface, while the jtAG connector used on the SAM-ICE is a full ARM 20-pin interface. In order to make the connection from the SAM-ICE to the Due, an adapter is required These adapter boards are also freely available. Two possibilities are https://www.olimex.com/products/arm/Jtag http://www.mouser.com/productdetail/olimex Allseen alliance 4 Downloading the arduino ide The first step in bringing up the ajtc development environment is to download and install the arduino de 1. As of this writing, the idE that supports the Arduino due board is arduino 1.5 BETA GototheArduinosoftwaredownloadspageathttplarduino.cc/en/main/softwarE 2. Scroll down to the 1.5 BETA release and select the Windows link(recall that this guide and its selection of the jtAG debugging environment in particular assumes a Windows cross-development host). This will download a large zip file(as of this writing arduino-1.5.2-windows zip is a 121 MB file) 3. Once this file is downloaded, open the zip file and extract it to c: \arduino. You may find it convenient to navigate to c: arduino\arduino-152 and pin the arduino executable to the windows taskbar or start menu 10 Allseen alliance

...展开详情
试读 28P 使用Arduino+Ethernet Shield配置Thin Client(廋客户机/精简计算机)构建环境
立即下载 低至0.43元/次 身份认证VIP会员低至7折
    一个资源只可评论一次,评论内容不能少于5个字
    ken_richard 非常实用,谢谢提供
    2014-07-22
    回复
    xll_computer 就是官方文档下下来的东西。
    2014-05-04
    回复
    关注 私信 TA的资源
    上传资源赚积分,得勋章
    最新推荐
    使用Arduino+Ethernet Shield配置Thin Client(廋客户机/精简计算机)构建环境 10积分/C币 立即下载
    1/28
    使用Arduino+Ethernet Shield配置Thin Client(廋客户机/精简计算机)构建环境第1页
    使用Arduino+Ethernet Shield配置Thin Client(廋客户机/精简计算机)构建环境第2页
    使用Arduino+Ethernet Shield配置Thin Client(廋客户机/精简计算机)构建环境第3页
    使用Arduino+Ethernet Shield配置Thin Client(廋客户机/精简计算机)构建环境第4页
    使用Arduino+Ethernet Shield配置Thin Client(廋客户机/精简计算机)构建环境第5页
    使用Arduino+Ethernet Shield配置Thin Client(廋客户机/精简计算机)构建环境第6页
    使用Arduino+Ethernet Shield配置Thin Client(廋客户机/精简计算机)构建环境第7页
    使用Arduino+Ethernet Shield配置Thin Client(廋客户机/精简计算机)构建环境第8页
    使用Arduino+Ethernet Shield配置Thin Client(廋客户机/精简计算机)构建环境第9页

    试读已结束,剩余19页未读...

    10积分/C币 立即下载 >