User manual

myEthernet Technische Beschreibung / technical description 3/48
www.myAVR.de © Laser & Co. Solutions GmbH – 06/2009 www.myAVR.com
Inhaltsverzeichnis Content
1
Produkteigenschaften..............................................5
1.1
Technische Daten ............................................5
1.2
Mechanische Daten..........................................5
2
Technische Details ..................................................6
2.1
Funktionen .......................................................6
2.1.1
Schnittstellen / Protokolle..........................6
2.1.2
Prinzipschaltplan und Aufbau....................8
2.1.3
Schaltplan .................................................9
2.2
Pin-Belegung..................................................10
2.3
ISP-Anschluss................................................11
2.4
UART-Schnittstelle.........................................12
2.5
MicroSD-Karte................................................13
2.5.1
Formatierung...........................................13
2.5.2
MicroSD-Card zu USB Adapter...............14
2.5.3
Nutzungshinweise bei Speicherkarten ....14
3
Erste Schritte.........................................................15
3.1
Vorbereitung...................................................15
3.2
myEthernet anschließen.................................15
3.3
Spannungsversorgung ...................................15
3.4
Webserver testen ...........................................15
4
Inbetriebnahme .....................................................16
4.1
Reihenfolge des Vorgehens...........................16
4.1.1
Mitgelieferte MicroSD-Karte einlegen......16
4.1.2
Spannungsversorgung............................17
4.1.3
Netzwerkkabel anschließen ....................17
4.2
Anschluss der Stift- und Buchsenleisten ........18
4.3
Netzwerk konfigurieren und testen................19
4.4
myEthernet in das Netzwerk integrieren.........19
4.5
Netzwerk an myEthernet anpassen................21
4.6
Test der Netzwerkverbindung ........................22
4.7
Mehrfacheinsatz im gleichen Netz..................23
4.8
Konfigurationsdatei „config.cfg“......................24
4.9
Webservereinsatz im WAN / Internet .............24
5
Ersetzungen und Kommandos des Webservers ...26
5.1
Einstiegshilfe mit Anwendungsbeispiel...........26
5.1.1
Schalten von Pins ...................................26
5.1.2
Darstellen von Pin-Zuständen.................27
5.1.3
Interaktive Webseite................................27
5.2
Zustandsabfragen der Pins am myEthernet...29
5.3
Pin-Funktionen ...............................................32
5.3.1
Digitale Ein-/Ausgabe (Pin 0…23)...........32
5.3.2
Analoge Eingänge...................................32
5.3.3
Temperatursensor LM75.........................33
5.3.4
Byteweise Ein- / Ausgabe .......................33
5.3.5
SharedRAM (Pin 1000…3999)................34
5.3.6
SharedEEPROM (Pin 5000…7999)........35
5.4
Externe Schnittstelle - TWI.............................36
5.5
Statusinformationen .......................................38
5.6
Besonderheiten HTML-Dateien......................39
6
myEthernet Firmware aktualisieren .......................40
7
Anwendungsbeispiel..............................................41
8
Troubleshooting.....................................................42
8.1
Verbindungstests bleiben erfolglos ................42
8.2
Probleme beim Laden von Dateien ................44
8.3
Änderungen der config-Datei ohne Wirkung ..45
9
Referenzkarte - Pin-Belegung ...............................47
10
Allgemeine Sicherheitshinweise ........................48
1
Product features......................................................5
1.1
Technical data..................................................5
1.2
Mechanical data...............................................5
2
Technical details ..................................................... 6
2.1
Functions .........................................................6
2.1.1
Interfaces / protocols ................................ 6
2.1.2
Principle circuit diagram............................8
2.1.3
circuit diagram ..........................................9
2.2
Pin configuration ............................................ 10
2.3
ISP connection...............................................11
2.4
UART interface ..............................................12
2.5
microSD-card.................................................13
2.5.1
Formatting...............................................13
2.5.2
MicroSD card to USB adapter................. 14
2.5.3
Instractions for using of memory cards ...14
3
First Steps.............................................................15
3.1
Preparation ....................................................15
3.2
Connecting the myEthernet ...........................15
3.3
Power supply .................................................15
3.4
Testing the web server...................................15
4
Starting.................................................................. 16
4.1
Order of the procedure...................................16
4.1.1
Insert the provided microSD card ...........16
4.1.2
Power supply .......................................... 17
4.1.3
Connecting the network cable.................17
4.2
multi-pin connector and female connector .....18
4.3
Configurate and test the network ...................19
4.4
Integrate the myEthernet in a network ...........19
4.5
Adapting the network to the myEthernet........21
4.6
Testing of the network connection ................. 22
4.7
Multi using in the same net ............................ 23
4.8
Configuration file „config.cfg“ ......................... 24
4.9
Web server in the WAN / internet...................24
5
Replacements and commands of the web server . 26
5.1
Introduction by help of an example of use .....26
5.1.1
Switching of pins.....................................26
5.1.2
Displaying of pin states...........................27
5.1.3
Interactive website..................................27
5.2
State enquiry of the pins on the myEthernet..29
5.3
Pin functions ..................................................32
5.3.1
Digital input / output (pin 0…23) .............32
5.3.2
Analogue inputs......................................32
5.3.3
Temperature sensor LM75...................... 33
5.3.4
Input / Output byte-by-byte ..................... 33
5.3.5
SharedRAM (pin 1000…3999)................ 34
5.3.6
SharedEEPROM (pin 5000...7999)......... 35
5.4
External interfaces - TWI ............................... 36
5.5
Status information..........................................38
5.6
Highlights by html files ................................... 39
6
Update the myEthernet firmware...........................40
7
Example of use .....................................................41
8
Troubleshooting ....................................................42
8.1
Connection tests remains unsuccessful.........42
8.2
Problems by loading of files ...........................44
8.3
Changes in the config file without an effect....45
9
Reference sheet - pin configuration ......................47
10
Safety Guidelines ..............................................48