Herunterladen Inhalt Inhalt Diese Seite drucken
Inhaltsverzeichnis

Werbung

myAVR
myAVR
myAVR
myAVR
Technische Beschreibung
myEthernet
technical description

Werbung

Inhaltsverzeichnis
loading

Inhaltszusammenfassung für myAVR myEthernet

  • Seite 1 Technische Beschreibung myAVR myAVR myAVR myAVR technical description myEthernet...
  • Seite 2 2/40 myEthernet Technische Beschreibung / technical description Die Informationen in diesem Produkt werden ohne Rück- sicht auf einen eventuellen Patentschutz veröffentlicht. Warennamen werden ohne Gewährleistung der freien Verwendbarkeit benutzt. Bei der Zusammenstellung von Texten und Abbildungen wurde mit größter Sorgfalt vorgegangen. Trotzdem kön- nen Fehler nicht vollständig ausgeschlossen werden.
  • Seite 3: Inhaltsverzeichnis

    Interaktive Webseite........26 5.1.3 Interactive website ........26 Zustandsabfragen der Pins am myEthernet ...28 State enquiry of the pins on the myEthernet .. 28 Pinübergreifende Funktionalität......31 Pin functionality across ........31 Ausgaben des myEthernet-Webservers..31 Expenditures of the myEthernet web server .. 31 Besonderheiten HTML-Dateien......33...
  • Seite 4 4/40 myEthernet Technische Beschreibung / technical description www.myAVR.de © Laser & Co. Solutions GmbH – 09/2008 www.myAVR.com...
  • Seite 5: Einleitung

    It is anytime available by network through its IP- address. Auf dem myEthernet können Webseiten bzw. Bedien- On myEthernet you can store or load websites and inter- oberflächen gespeichert und aufgerufen werden. Dies faces. This is also possible with a remote maintenance ermöglicht auch eine Fernwartung von Systemen (z.B.
  • Seite 6: Produkteigenschaften

    • ISP connection 10 pin • ISP-Anschluss 10polig • TWI / UART / SPI interface • TWI / UART / SPI-Schnittstelle • add-on socket with myAVR standard • Erweiterungsbuchse nach myAVR-Standard • printed circuit board FR4, industrial production, • Qualitätsleiterplatte FR4, Industriefertigung, ro-...
  • Seite 7: Technische Details

    MicroSD-Karte: To have access to a multiplicity of files and a Um Zugriff auf eine Vielzahl an Dateien sowie robust data memory the myEthernet has an einen robusten Datenspeicher zu besitzen, interface for microSD-cards. This interface will verfügt das myEthernet-Board über eine...
  • Seite 8 8/40 myEthernet Technische Beschreibung / technical description myEthernet: myEthernet: Die Kommunikation über das Netzwerk wird mit The communication via the network will be dem Mikrocontroller ENC28J60 realisiert. Der realized with the microcontroller ENC28J60. Datentransfer des embedded Webservers wird The data transfer of the embedded web server durch das Protokoll HTTP umgesetzt.
  • Seite 9: Prinzipschaltplan Und Aufbau

    Technische Beschreibung technical description 9/40 2.1.2 Prinzipschaltplan und Aufbau 2.1.2 Principle circuit diagram Anschlüsse und Schnittstellen: Circuit points and interfaces: Mikrocontroller des myEthernets: Microcontroller of the myEthernet: www.myAVR.de © Laser & Co. Solutions GmbH – 09/2008 www.myAVR.com...
  • Seite 10: Pin-Belegung

    Pins are 24 physically pins available for using on the Verwendung auf dem myEthernet bereit. myEthernet. Aus der Belegungstabelle ist ersichtlich, welche Pins From the table it is clear which pins process digital or digitale bzw. analoge Daten verarbeiten. Der A/D- analogue data.
  • Seite 11: Isp-Anschluss

    Technische Beschreibung technical description 11/40 Die Pins 0,1,2,3 und 12,13,14,15 werden weiterhin auch The pins 0,1,2,3 and 12,13,14,15 are addressed as als PortA sowie die Pins 4 bis 11 als PortB portA and the pins 4 – 11 as portB. The two ports have angesprochen.
  • Seite 12: Uart-Schnittstelle

    12/40 myEthernet Technische Beschreibung / technical description Verbindung des mySmartUSB MK2 mit dem myEthernet: Connection of the mySmartUSB MK2 with the myEthernet: ISP Connect Kabel 10polig ISP connect cable 10-pole 2.4 UART-Schnittstelle 2.4 UART interface Der UART ist eine flexible serielle Kommunikations- The UART is a flexible serial communication interface.
  • Seite 13: Microsd-Karte

    2.5.1 Formatting Die MicroSD-Karte muss eine bestimmte Formatierung To use the microSD card in the myEthernet it has to besitzen, damit sie im myEthernet verwendbar wird. Das possess a certain formatting. The format of the file Format des Dateisystems ist FAT16, welches eine Unter- system is FAT16 which supports 2 GB big partitions stützung von bis zu 2 GB großen Partitionen mit 8+3 Da-...
  • Seite 14: Microsd-Card Zu Usb Adapter

    Adapter unserer Webseite adapter also available shop http://www.myavr.de im myAVR Shop unter der Rubrik http://www.myavr.de in the category „Zubehör“. „Zubehör“ erhältlich. MicroSD-Card zu USB Adapter mit MicroSD / MicroSD card to USB adapter with microSD 2.5.3 Nutzungshinweise bei Speicherkarten 2.5.3 Instractions for using of memory cards •...
  • Seite 15: Erste Schritte

    • folgende URL in den Internet-Browser eingeben: • Type the following URL into your web browser: http://192.168.20.96/index.htm http://192.168.20.96/index.htm • die myEthernet Startseite erscheint bei erfolgrei- • The myEthernet home page will pop up if the cher Verbindung connection was succeed myAVR Netzteil (optional) PowerKit V5 (optional)
  • Seite 16: Inbetriebnahme

    4.1.1 Insert the provided microSD card Sorgen Sie dafür, dass keine Stromversorgung am Make sure that there is no power on the myEthernet. If myEthernet angeschlossen ist. Sollte die MicroSD-Karte the microSD-card isn’t engaged in the card holder of the...
  • Seite 17: Spannungsversorgung

    Beim Anschluss in Ihrem Netzwerk wird per normalem By connecting with your network a connection between a TP-Kabel eine Verbindung zwischen einem Switch switch or a hub and the myEthernet is made via a normal bzw. Hub und dem myEthernet hergestellt. TP cable.
  • Seite 18: Anschluss Der Stift- Und Buchsenleisten

    Im Zubehör ist eine Stift- und eine connectors which are not soldered on. If it’s necessary Buchsenleiste beigelegt, die nach Bedarf wie auf dem then you can them soldered on the myEthernet like you Bild dargestellt angelötet werden kann. see it on the picture.
  • Seite 19: Netzwerk Konfigurieren Und Testen

    4.3 Configurate and test the network Für die Kommunikation in Ihrem Netzwerk kann das myE- The myEthernet can be configured free for the commu- thernet frei konfiguriert werden. Dabei sind IP-Adresse nication in your network. The IP address and the sub-...
  • Seite 20 So you have to change dies für myEthernet geschehen. diese the settings on the myEthernet. To take this adaptation Anpassung vornehmen können, you have to work on the file “config.cfg” which is on the mitgelieferten MicroSD-Karte die Datei „config.cfg“ zu microSD card.
  • Seite 21: Netzwerk An Myethernet Anpassen

    If you want to adapt the network to the configuration of myEthernets anpassen möchten, dann bearbeiten Sie auf the myEthernet then you have to edit the settings for einem Windowssystem unter: the “internet protocoll (TCP / IP)” which you can find...
  • Seite 22: Mehrfacheinsatz Im Gleichen Netz

    4.7 Multi using in the same net Planen Einsatz mehrerer myEthernet- If you plan to use several myEthernet web servers in the Webserver im gleichen Netzwerk, dann muss neben der same network, then you have to change the IP address Änderung IP-Adresse...
  • Seite 23: Konfigurationsdatei „Config.cfg

    Hexadezimalformat aus. hexadecimal. 4.8 Konfigurationsdatei „config.cfg“ 4.8 Configuration file „config.cfg“ Der Webserver eines myEthernets kann individuell an You can adapt the web server of the myEthernet on jedes Netzwerk angepasst werden. Textdatei every network individual. The text file “config.cfg” will „config.cfg“...
  • Seite 24 24/40 myEthernet Technische Beschreibung / technical description Beispiel einer Konfiguration mit dem Fritz!box-DSL-Router: Configuration with the Fritz!box DSL router: Einstellen der Portfreigabe / setting up the opening of the port Einstellen der dynamischen Adresseverwaltung Setting the dynamic address administration www.myAVR.de ©...
  • Seite 25: Ersetzungen Und Kommandos Des Webservers

    Both LEDs are used in the operation to displays Anzeige Fehlern Initialisierung errors by initialization of the myEthernet. They can be myEthernets. Durch den Anwender können diese aber also controlled through the user. The signal is issued to ebenfalls gesteuert werden. Auf den Pins 20 und 21 wird the green or red LED on the pins 20 and 21.
  • Seite 26: Darstellen Von Pin-Zuständen

    26/40 myEthernet Technische Beschreibung / technical description 5.1.2 Darstellen von Pin-Zuständen 5.1.2 Displaying of pin states Wie kann jetzt festgestellt werden, ob eine LED bereits How can I check if a LED lights? There are also re- leuchtet? Weiterführend zum Verwenden von Komman- placements.
  • Seite 27 The function „doRequest()“ „doRequest()“ sendet nach dem Ajaxprinzip eine Anfrage an den send a request to the myEthernet web server after ajax myEthernet-Webserver ohne die aktuelle Webseite neu principle without loading the website again. zuladen. Das ausführliche und grafisch hinterlegte Beispiel zu You can find a detailed and graphically deposited diesem Anwendungsfall ist im Unterpunkt der „Bsp-...
  • Seite 28: Zustandsabfragen Der Pins Am Myethernet

    Signaleingänge realisiert werden? Für diesen Anwendungsfall wird ein Aufbau des For this application we take a building of the myEthernet myEthernets mit dem myAVR Board MK2 wie im Menü with the myAVR Board MK2 like it’s demonstrates in „Bsp-Anwendungen“...
  • Seite 29 Rückgabe zu warten, bevor eine neue Anfrage an den request will be sent. The conversion can happens with myEthernet-Webserver geschickt wird. Die Umsetzung the java script function „setTimeout()“ which starts after kann dabei mit der Javascriptfunktion „setTimeout()“...
  • Seite 30 {if (req.readyState == 4){ fileContent = req.responseText;}} req.send(null); if (fileContent) //Ergebnis zurückgeben return fileContent; else return ""; </script> </head> <body onLoad="onloadDo();"> <b>myEthernet - Pinwerte auslesen</b><br><br> <div id="out"></div><br> <div id="outw"></div> </body> </html> www.myAVR.de © Laser & Co. Solutions GmbH – 09/2008 www.myAVR.com...
  • Seite 31: Pinübergreifende Funktionalität

    31/40 5.3 Pinübergreifende Funktionalität 5.3 Pin functionality across Neben den Pins 0 bis 23 bietet das myEthernet noch die In addition to the pins 0 to 23 the myEthernet offers virtuelle oder auch pinübergreifende Funktion. Dabei also the virtual or across pin function. Thereby several werden mehrere Pins als Gruppe genutzt oder für...
  • Seite 32 32/40 myEthernet Technische Beschreibung / technical description Beispiel einer Ausgabe zu den Informationstypen: Example to an expenditure to the information types: <html> <head> <title>myAVR-Server</title> <script language="JavaScript" type="text/javascript"> function $(id){ //allgemeine Ausgabefunktionen if (document.getElementById(id)==null) return document.getElementsByName(id)[0]; else return document.getElementById(id);} function $T(id,t) {$(id).innerHTML=t;}...
  • Seite 33: Besonderheiten Html-Dateien

    Schleife unterbricht. Can the myEthernet web server carry out autonomous tasks or programs? Kann der myEthernet-Webserver autonome Aufgaben oder Programme ausführen? This question has to be answered with no, because the Diese Frage muss mit nein beantwortet werden, da die controlling of value outputs on the pins will be only Steuerung von Wertausgaben an Pins derzeit nur über...
  • Seite 34: Myethernet Firmware Aktualisieren

    Treffer ist ein Eintrag zur Firmware enthalten. hits. Mit dem Programm myAVR ProgTool kann die *.elf The file *.elf can burn on the myEthernet with the Datei auf das myEthernet gebrannt werden. Beachten program myAVR ProgTool. Please pay attention to the Sie dabei die richtigen Einstellungen im Reiter „Hard-...
  • Seite 35: Anwendungsbeispiel

    Technische Beschreibung technical description 35/40 Anwendungsbeispiel Example of usage myAVR Board MK2 USB myEthernet myDigitalOut myTWI Temperatursensor / myTWI temperature sensor myTWI EEPROM myTWI Echtzeituhr index.htm skala.gif setup.htm status.htm config.cfg www.myAVR.de © Laser & Co. Solutions GmbH – 09/2008...
  • Seite 36: Troubleshooting

    • The network cable is correct inserted in your PC / Rechner / Switch / Hub und dem myEthernet, es leuchtet mindestens die grüne LED am Netzwerk- switch / hub and in the myEthernet and it lights at port least the green LED on the network port •...
  • Seite 37 Das myEthernet überträgt die Dateien der MicroSD- The myEthernet transmits files on the microSD card in Karte in vielen kleinen Paketen, diese sind meist kleiner many small packages which are mostly smaller than 400 als 400 Byte. Diese Größe ist verantwortlich für viele byte.
  • Seite 38: Probleme Beim Laden Von Dateien

    8.2 Probleme beim Laden von Dateien 8.2 Problems by loading of files Das myEthernet sendet keine Webseiten oder Dateien The myEthernet does not send websites or files of the von der MicroSD-Karte, obwohl die Kommunikation im microSD card although the communication in the net-...
  • Seite 39: Änderungen Der Config-Datei Ohne Wirkung

    You have changed the addresses in the file “config.cfg” „config.cfg“ vorgenommen und nach dem Neustarten but after a restart they are not transferred? werden diese nicht vom myEthernet übernommen? • Öffnen Sie diese Datei von der MicroSD-Karte und • Open the file from the microSD card and remove...
  • Seite 40: Allgemeine Sicherheitshinweise

    Allgemeine Sicherheitshinweise Safety Guidelines Grundsätzlich ist das myEthernet nur zum Einsatz unter The myEthernet is designed for educational and ex- Lern- und Laborbedingungen konzipiert. Er ist nicht vorge- perimental use only. It is not intended and not dimen- sehen und nicht dimensioniert zur Steuerung realer Anla- sioned to control real industrial facilities.

Inhaltsverzeichnis