Home
THIS DOCUMENT - Round Solutions
Contents
1. 2 Using a SD memory card Copy the textfile Le basic txt with the BASIC program to a SD card Create a second textfile called autorun txt on this SD card Enter the following command in this file load basic txt Insert a newline after this command lt enter gt Place SD card into module and power up The BASCI program will be loaded into memory 3 Using the Web Interface With a network interface WLAN or LAN attached the upload can be done using the Webinterface Browse to the module s home page and navigate to the BASIC page Select the file to upload and press submit EXECUTION To execute a BASIC Script the run command is issued Using the run auto command the autostart flag is set When the Box Module is powered up the script is started automatically A single run starts the script once The run command can be issued by the data interface autorun txt file on SD card and via web interface How to stop execution depends somewhat on the design The BASIC script can terminate itself it was programmed to do so If it was started with run without any flags a power off on cycle will stop execution If the run auto flag is set termination can be done two ways using a SD card with the autorun txt file containing a run manual command or using the Web interface if WLAN LAN is present AVISARO AG PAGE 13 DATE 08 02 2008 AVISARO 2 0 COMPACT USER MANUAL BUI
2. correct bugs There are three ways to update the firmware 1 Using the data interface i e RS232 2 using a SD memoty card 3 using the web interface Attention Do not interrupt a firmware update process Make sure power supply is stable A firmware update always has the risk of leaving the module in a non functional state FIRMWARE UPDATE USING WEB INTERFACE If a network interface is available WLAN or LAN and activated a new firmware can be upload using the web interface Navigate to the Firmware section and select the firmware file AVISARO 2 0 Windows Internet Explorer SEE g9 z e http 192 168 2 3 P we de avisaro 2 0 23 e Seite ir Extras Avisaro 2 0 Firmware Networking WLAN New FW Image File Ethernet C v_1_16 bin IP Data Interface RS232 SPI IIC CAN Ethernet TCP Socket Module Settings Webserver Scripting Clock Firmware General Information Statistics 2008 Avisaro AG Press the Send File button and wait for the response It make a couple 10 sec of seconds to upload the file AVISARO 2 0 Uploaded 497676 497676 Bytes Avisaro 2 0 FW Upload successfully completed Networking WLAN Ctharnot If the upload was successful the use it now button allows to start the actual update process Click to activate AVISARO AG PAGE 16 DATE 08 02 2008 AVISARO 2 0 COMPACT USER MANUAL FIRMWARE UPDATE USING A SD MEMORY CARD To pe
3. BASIC Scripting on page 13 AVISARO AG PAGE 12 DATE 08 02 2008 AVISARO 2 0 COMPACT USER MANUAL BASIC SCRIPTING The Avisaro Base Module has a build in BASIC programming language It is designed to program small applications such as data logger or device server functionality It is not designed to write large complex applications The BASIC program is stored in the internal flash of the Avisaro Module thus it needs to be loaded only once By setting the autorun flag see the BASIC program starts automatically upon power up It is a simple yet very powerful feature Browse to www avisaro com and navigate to the Anwendung or Application section for g g examples PROGRAMMING ENVIRONMENT Use your preferred text editor to type the BASIC program There is no special programming environment since applications are not complex For an easier start use one of the example programs and modify it The source code can be 4 kByte large with 2 8 kByte tokenised code and 8 kByte space for variables arrays and other space needed at runtime LOADING The BASIC program can be uploaded three ways 1 Using the data interface i e RS232 12C Type the command load and lt enter gt Than upload the textfile with the BASIC program Most terminal program support the option send textfile to do that Finish upload by typing in stopsequence It is usefull to have the three at the end of the textfile
4. Activates CAN as data interface CAN 125000 49 0 49 0 Set baudrate and other settings EXAMPLE CONFIGURATION ETHERNET TCP The following commands are used to configure the Avisaro product to accept an incoming TCP connection All settings shown here are default change only if required net eth Network interface to Ethernet prot sock Activates TCP as data interface sockio 23 Listen on port 23 1p l cal 192168073 Set modules IP address for TCP and Web EXAMPLE CONFIGURATION ETHERNET RAW The following commands set the raw ethernet interface to receive packets addressed to mac address 02020304050a coming from mac address 0019dbb5c231 TCP settings are not necessary since low level Ethernet is used net eth Network interface to Ethernet eth 02020304050a Activates raw Ethernet as data interface ethio 0019dbb5c231 TEEEPEELEEELEE off off 10 Set listen MAC and filter AVISARO AG PAGE 11 DATE 08 02 2008 AVISARO 2 0 COMPACT USER MANUAL COMMAND INTERFACE VS PACKET API VS SCRIPTING There are three modes to Operate or to interact with the module 1 The Command Interface allows to type and send commands in ASCII format For example a RS232 product is connect with a terminal program on a PC one can communicate by typing in commands and by reading the answer on the terminal 2 The Packet API is designed for programmable devices microcontroller to control the Avisaro product Commands and data are packaged in simple
5. Download section products AVISARO AG PAGE 4 DATE 08 02 2008 AVISARO 2 0 COMPACT USER MANUAL CONNECT AND POWER UP BOX RS232 INTERFACE Relevant products are Data Logger Box SD with WLAN Device Server 2 0 with RS232 interfaces RS232 interfaces Depending on the interface purchased the Box comes with a SubD connector or with a WAGO cage clamp connector The SubD male connector conforms to the standard pin layout Data Carrier Detect DCD Receive RxD Data going to Avisaro Box Transmit TxD Data going to device Data Terminal Ready DTR Avisaro Box is up Signal Ground GND Data Set Ready DSR Client is up and running Request To Send RTS Avisaro wants to send data Clear To Send CTS Client is ready to recetve data Not used Ring Indicator RI Oo CG JC NB WN e If the box comes with a WAGO connector the pin layout is as follows The barrel connector is layouted as follows Supply voltage is 6 32 V Diameter of the connector is 2 1mm AVISARO AG PAGE 5 DATE 08 02 2008 AVISARO 2 0 COMPACT USER MANUAL BOX CAN INTERFACE Relevant products are Data Logger Box SD with WLAN Device Server 2 0 with CAN interfaces CAN interfaces Depending on the interface purchased the Box comes with a SubD connector or with a WAGO cage clamp connector The SubD male connector conforms to the standard pin layout not connected CAN L GND not connected not connected GND CAN H no
6. PROGFW none Burns previously loaded firmware into Oxd1 internal memory LOADEW Loads firmware from disk into Oxd0 DataFlash No burning process AVISARO AG PAGE 19 DATE 08 02 2008
7. C is needed CAN is designed as Tx and RX a CAN transceiver IC is need to operate on a CAN bus Refer to the hardware documentation for details on the pin layout As an example the pin layout of the module when configured as RS232 is displayed here When configured as i e CAN pin layout changes Power pin 24 and pin 13 remain always power pins 2 fo Um 3 o Un oO AON Oa FW NY 10 DO O O DO O O O O O O ch D Power T Input O Output B Bidirectional AVISARO AG PAGE 8 DATE 08 02 2008 AVISARO 2 0 COMPACT USER MANUAL VBATI Battery Supply for the real time clock See chapter for details LED1 Module is up and running LED2 Module is working transmitting data KEY Stop current action Start defined action data logging WLAN transmittion TXD RXD RS232 connection IN_ Internal SPI bus to connect trailer modules WATCH OUT The Avisaro 2 0 Products are high tec products designed to be used by experts Even though their design is robust to withstand electrical and mechanical hazards all products should be handled with care When products are not operated as designed there is risk of damage to the products and to other products around AVISARO AG PAGE 9 DATE 08 02 2008 AVISARO 2 0 COMPACT USER MANUAL CONFIGURATION There are three ways to configure the Avisaro products 1 2 3 Configuration using SD memory cards All da
8. LDING BLOCKS Avisato 2 0 Product Series is designed to mix and match Just like LEGO building blocks most elements can be connected to get the functionality one needs Need a CAN Data Logger with WLAN ACCESS P BASE MODULE The Avisaro 2 0 Base Module contains the main processing power to drive the WLAN or SD Card trailer modules The Base Module is designed to piggyback the Trailer Modules and is designed to fit on the connector boards optional on board battery for real Processor and other circuitry time clock a pin for V bat is available too TRAILER MODULES Trailer modules bring WLAN SD card slot and other functionality WLAN Trailer module SD Card Trailer module piggybacked with the Base Module piggybacked with the Base Module All modules stacked together Experimental PCB with connector strips for height spacing AVISARO AG PAGE 14 DATE 08 02 2008 AVISARO 2 0 COMPACT USER MANUAL CONNECTOR BOARDS Connector boards contain interface connectors driver circuitry such as MAX232 and CAN transceivers and power supply circuitry A battery holder to power the real time clock is on board as well CAN Board with RIC battery RS232 Board no Base and Ethernet Board no Base and Trailer Trailer module stacked on module stacked on AVISARO AG PAGE 15 DATE 08 02 2008 AVISARO 2 0 COMPACT USER MANUAL FIRMWARE UPDATE The firmware of the Avisaro Base Module can be updated to add newly released features or to
9. f Lowes TP Panes all IP eecinos Prints all WLAN settings AVISARO AG PAGE 18 DATE 08 02 2008 AVISARO 2 0 COMPACT USER MANUAL lt NONE WEP40 a rc 1 WLAN PS lt on off gt Controls WLAN powetsave HTTP ON OFF Changes setting of web server USER PASS HTTP Prints settings of web server PING lt IP address gt Issues a ping command Gets IP address for domain CONNECT lt handle gt lt IP address gt Creates a TCP connection lt port gt lt tx timeout gt lt wait gt UDP lt handle gt lt IP address gt Creates a UDP socket lt tx timeout gt lt check gt timeout gt lt wait gt PSSTAT Prints status of all sockets SD CARD INTERFACE OPEN lt handle gt Opens a file for reading and associates lt filename gt file handle with it OPEN Ll jonoa e NEW lt handle gt Creates file for writing lt filename gt APPD lt handle gt Opens existing file for writing at the lt filename gt end Ls WRITE lt handle gt lt data gt Writesdata at READ lt handle gt lt amount gt Readsdata Llsa CLOSE lt handle gt Closes opened file a pf xa Liss Lil o Oa _ Liz _ Lie Oad _ Lie Shows storage card information Positions file pointer BASIC SCRIPTING Basic script Loads BASIC script into internal memory Finish with stop sequence none Shows stored basic script none auto wait autowatt Starts execution of script manual ADVANCED COMMANDS
10. fault bus address is decimal 73 SPI No special setting necessary CAN Default baudrate is 125 kbit s Default CAN ID is decimal 73 Ethernet TCP The data interface can be reached at ip address 192 168 0 73 on port 23 Ethernet raw The default MAC address is printed on the product DEFAULT VALUES FOR NETWORK INTERFACE The network interface must be active for Ethernet TCP raw to work The network interface is found automatically upon power up If WLAN and LAN are attached the WLAN becomes the network interface Only one network interface can be active as a network 1 WLAN setting In default mode the Avisaro products creates an adhoc WLAN network with the SSID name avisaro Do a network search with your PC and it will show up in the list of available networks Connect to it Set the PCs IP address to 192 168 0 xx and the mask to 255 255 255 0 Type in the default Avisaro IP address 192 168 0 73 in a browser to connect to the module Default user and password for web site is admin 1234 AVISARO AG PAGE 10 DATE 08 02 2008 AVISARO 2 0 COMPACT USER MANUAL 2 LAN setting Connect via network cable Set the PCs IP address to 192 168 0 xx and the mask to 255 255 255 0 Type in the default Avisaro IP address 192 168 0 73 in a browser to connect to the module EXAMPLE CONFIGURATION RS232 prot rs232 Activate RS232 interface rs232 115200 8 N 1 NONE Set baudrate and other settings EXAMPLE CONFIGURAITON CAN prot can
11. frames This is a powerful and fast way to communicate with the module The frames contain binary data elements 3 Scripting is used to customize the behaviour of the module and to implement stand alone functionality As programming language a BASIC like syntax is used That is simple to understand and it does not need a special programming environment Typical application would be data logging receive data from one of the interfaces format the data and store it on a memory card or send it via wireless network COMMAND INTERFACE The command interface is designed to communicate with the module naturally When the RS232 interface is active and connected with a PC one can type in the commands on a regular terminal programm such as Hyperterminal which comes with Windows Other interfaces work the same There is a long list of commands to configure and to operate the Box or the Module see Attachment Commands on page 18 and separate document Command Interface Documentation PACKET API The packet interface uses a simple frame format for communication With Internal Portnumbers multiple communication such as several opened files or several TCP IP connections at the same time are possible See separate document Command Interface Documentation Internal Port Payload Abvisaro Packet API frame format 9 only if frame is a data frame SCRIPTING Scripting is described in its own chapter See
12. nd Parameter Description Binary INTERFACE CONTROL PROT lt gt Selects data interface configuration 0x10 Sets DC slave address LL SPI SP Les Sets the SPI parameters LI O12 lt gt lt gt lt gt lt gt Sets RS232 parameters 013 CAN CAN lt gt lt gt lt gt lt gt SetCANparamenters LL PCSTATP CT CCC Din CAN statistics o o lt WLAN ETH Controls the network interface Wro nones nosenom J Prints active network interface ll WEE en Sets MAC address po Prints MAC address WE lt gt lt gt lt gt Configures Ethernet as low level data interface ETHIO Shows all settings of the Ethernet ECHO Echoes back user input oo O SOCKIO lt port gt Sets a new port number for the TCP socket I O protocol SOCKIO Shows port number used by TCP socket I O protocol GENERAL COMMANDS Tome le L beesdemeek IIe ER le L gen Fiemme version ll ANE le L o module name ll NAME cmm max 16 gt Sets module name II ER REES emeng Jee Changes the stop sequence Ian emp le T Shows the stop sequence PROMPT Sets new prompt string zero means 0x45 no prompt mg o sss sesRTCimevaus Isi ml wR Cee Ip aeoo S sewer ERROR le bowsers S WLAN LAN INTERFACE LOCAL lt IP address gt Sets IP address of module itself GW lt IP address gt gateway mask and DNS server MASK CID address gt DNS lt IP address gt DCHP lt IP address gt DHCP lt on off gt Switches DHCP on or of
13. pea Salo USER MANUAL OVERVIEW Avisaro 2 0 Product Series Ethernet TCP Data Logger Box SD WLAN Device Server 2 0 Logger Box SD Data Logger Module SD WLAN Module 2 0 Other configurations Version 1 2 2008 02 12 AVISARO 2 0 COMPACT USER MANUAL THIS DOCUMENT HISTORY 2008 01 01 i Initial version 2008 02 07 i Added CAN commands table 2008 02 12 Lo Added Ethernet TCP und raw commands REQUIRED FIRMWARE This document describes firmware version 1 16 or higher Navigate to the relevant product page on www avisaro com to download latest firmware versions CONTACT Avisato AG Vahrenwalderstr 7 tch 30165 Hannover Germany Telephone 49 511 7809390 Telefax 49 511 35319624 eMail support avisaro com AVISARO AG PAGE 2 DATE 08 02 2008 AVISARO 2 0 COMPACT USER MANUAL TABLE OF CONTENT MAS D OC TC EE History required Firmware Contact TEASE Gite CoG tte EE Abo tths Document renane AAE ANE Connect and Power ER DEEN Box RS232 Interface Box CAN Interface Box Ethernet TCP raw Interface Base and Trailor Modules Interface RS232 I2C SPI selection Pin Layout and Signal Levels Watch out Con Honra O ein r E Default values for Data interface Default values for network interface Example configuration RS232 Example configuraiton CAN Example configuration Ethernet TCP Example configuration Ethernet raw Command Interface vs Packet API vs Scrip
14. rfaces and barrel connector shown without enclosure interfaces and WAGO cage clamp for power Ethernet interface is a standard RJ45 jack Standard Ethernet Layout If the box comes with a WAGO connector power is supplied using this connector The barrel connector is layouted as follows Supply voltage is 6 32 V Diameter of the connector is 2 1mm AVISARO AG PAGE 7 DATE 08 02 2008 AVISARO 2 0 COMPACT USER MANUAL BASE AND TRAILOR MODULES The Base and Trailor Modules are the building blocks for all Series 2 0 products The modules are designed to be integrated into other products to become a part of their Data Logger Module SD with WLAN Module 2 0 with _ RS232 CAN I2C SPI and RS232 CAN I2C SPI and Other configurations other interfaces other interfaces INTERFACE RS232 I2C SPI SELECTION The active interface RS232 SPI I2C CAN is configurable The default configuration is RS232 See next chapter Configuration on page 10 for how to change this configuration either through auto run file on SD card web interface or data interface Le prot 12c for DC interface to become active PIN LAYOUT AND SIGNAL LEVELS The module is powered with 3 3V Higher supply voltage will damage the product d permanently Signal levels however can be up to 5V All data interface do not contain any driver circuitry Thus RS232 is 3 3V level To operate with a PC or other device a MAX232 I
15. rform a firmware update using a SD memory card follow the steps 1 Copy the firmware image on a SD memory card The name of the firmware typically looks like avi_v1 9 bin You find the latest version on the www avisaro com home page Usually the downloaded firmware is zipped use your preferred unzip program Create a file autorun txt on the same SD card This file contains commands to be executed after power up Fill this file with the following commands loadfw avi_v1 9 bin progtw 2 Switch off the Avisaro module Insert the SD card 3 Switch on the Avisaro module The process will be started by first loading the firmware into the module loadfw and than performing the firmware update progfw The process can be supervised by observing the LEDs on the base module A flashing red LED signals a ongoing process A solid red and green LED signals finished process 4 Switch off the module take out SD Card Remove the files to avoid an accidental firmware update Alternatively to using the autorun txt file the commands can be entered using the command line interface FIRMWARE UPDATE USING DATA INTERFACE Firmware update using the data interface requires to use the packet interface 1 Issue the loadfw command with no parameter 2 Transmit the firmware image packed in frames 3 Issue the progfw command AVISARO AG PAGE 17 DATE 08 02 2008 AVISARO 2 0 COMPACT USER MANUAL ATTACHMENT COMMANDS Comma
16. t connected not connected VD OG JC NB WN e If the box comes with a WAGO connector the pin layout is as follows The barrel connector is layouted as follows Supply voltage is 6 32 V Diameter of the connector is 2 1mm AVISARO AG PAGE 6 DATE 08 02 2008 AVISARO 2 0 COMPACT USER MANUAL BOX ETHERNET TCP RAW INTERFACE The Ethernet connection serves for four functions 1 Data interface with a TCP IP connection Connect with a TCP connection to the Avisato product i e 192 168 0 73 on port 23 Using this TCP connection all commands can be entered 2 Network interface for user data i e data logger Within BASIC scripting or in combination with other data interfaces like RS232 CAN the Ethernet network interface can be used for user defined networking outgoing incoming TCP and UDP connections Example Automatic data logger all data through this TCP connection is written automatically into a file See BASIC scripting for details 3 Data interface with Ethernet type 1 frames A low level communication using Ethernet type 1 frames is accepted Avisaro accepts Ethernet packets its MAC address 4 Network interface for web server For easy configuration the Avisaro products have build in web server which provides pages for configuration Default IP address is 192 168 0 73 default user and password for web site is admin 1234 Data Logger Box SD with Ethernet Data Logger Box SD with Ethernet inte
17. ta logging products can be configured using a configuration file on a memory card Place all configuration commands see next paragraphs for examples and separate document Command Interface Manual in a file called autorun tst Insert card and power on module This will always work even if all other methods are blocked i e by faulty baud rate parameter Got no SD Card slot on the product See chapter Building blocks on page 14 on how to add one temporarily Configuration using Web Interface All products with a WLAN or LAN interface can be configured using a build in web interface Connect your PC to the modules WLAN or LAN Type in the IP Address of the Avisaro module into the browsers address line All settings are now set by the web interface Default user and password for web site is admin 1234 Configuration using Data Interface All commands can be typed or send over the data interface RS232 SPI CAN Commands can be send in ASCII format or in binary packed format see Command Interface vs Packet API vs Scripting on page 12 See separate document Command Interface Manual for the syntax of the commands DEFAULT VALUES FOR DATA INTERFACE When shipped the products are pre configured Default Settings depending on the interface activated Modules are preconfigured with the RS232 connection activated 1 2 3 4 5 6 RS232 Default setting is 9600 n 1 and no flow control I2C De
18. ting Command Interface Packet API Scripting BASIC Seine Programming Environment Loading Execution Badine DOCKS ie Base Module Trailer Modules Connector Boards Pra We EE Firmware Update using web interface Firmware Update using a SD memory card Firmware update using data interface Attachment Comma ndls ccccccccssssssscccoccccccesvscsesees Interface control General commands WLAN LAN Interface SD Card Interface BASIC Scripting Advanced commands AVISARO AG Wo Nw WN Ln V o o0 OG JC UI 10 10 11 11 11 11 ee 12 12 12 12 EE 13 13 13 13 Eeer 14 14 14 15 Seene 16 16 17 17 ENE OAA IEEE NNE EEE EEE E A 18 18 18 18 19 19 19 PAGE 3 DATE 08 02 2008 AVISARO 2 0 COMPACT USER MANUAL ABOUT THIS DOCUMENT This document provides a compact introduction into the functions and features of the Avisaro 2 0 Product series Since all Series 2 0 products are similar in how to use them this document is one doc fits all Further detailed documentation is available Avisato Command Interface Lists all commands and their syntax www avisaro com Describes packet format and other Download section details Avisato Basic Scripting Lists all BASIC commands and their www avisaro com syntax Comes with example listings Download section Avisato Hardware Documentation Describes PIN layout electrical and www avisato com mechanical dimensions of the
Download Pdf Manuals
Related Search
Related Contents
KIRKPATRICK SE193K II 2G EEx d IIC T6 CESI 03 ATEX 323 Sitecom Voicecam Pro Copyright © All rights reserved.