BARIX AG | Page 3 / 124
4 Software Interfaces .............................................................................................................. 50
4.1 Built-in Web Server (HTTP) .............................................................................................. 50
4.1.1 Web Server CGI .......................................................................................... 51
4.2 ASCII Command Protocol ................................................................................................ 54
4.2.1 Command Format ....................................................................................... 54
4.2.2 ASCII Commands ....................................................................................... 55
4.2.3 Unsolicited State Change Messages .......................................................... 56
4.2.4 Getting Started with the ASCII Command Protocol ................................... 57
4.3 SNMP ............................................................................................................................... 58
4.4 Syslog ............................................................................................................................... 59
4.5 Modbus/TCP .................................................................................................................... 59
4.6 Modbus via RS-485 .......................................................................................................... 60
4.7 Serial Gateway Function .................................................................................................. 61
5 Creating Custom Applications & Web Pages .................................................................... 62
5.1 Development Process Overview ...................................................................................... 62
5.2 Creating Custom HTML Pages ........................................................................................ 63
5.2.1 Barix Dynamic Tags .................................................................................... 64
5.2.2 Password Protecting Custom HTML Pages ............................................... 71
5.3 Creating Custom BCL Applications ................................................................................. 72
5.3.1 Creating and Editing a BCL File .................................................................. 72
5.3.2 The Tokenizer ............................................................................................. 72
5.4 Loading Custom Web Pages and BCL Applications ....................................................... 73
5.4.1 Creating a COB Package File ..................................................................... 73
5.4.2 Uploading the COB File .............................................................................. 74
5.4.3 The Barionet Memory Map ......................................................................... 75
5.5 Development Tools and Scripts Summary ....................................................................... 76
5.5.1 Windows Tools and Batch Files ................................................................. 77
5.5.2 Macintosh OS-X Tools and Scripts ............................................................ 78
5.5.3 Linux Tools and Scripts .............................................................................. 79
6 The Sample Digital I/O and Serial Tunnel Application ...................................................... 80
6.1 The Application Setup Screen .......................................................................................... 80
6.1.1 Setting up the Serial Tunnel ........................................................................ 81
6.1.2 Setting up the I/O Tunnel ............................................................................ 81
6.2 The Sample Application Source Code ............................................................................. 82
7 Troubleshooting ................................................................................................................... 83
7.1 Common Problems and Solutions ................................................................................... 83
7.2 Using Syslog Messages ................................................................................................... 84
7.2.1 Barionet Internal Syslog Messages ............................................................ 85
7.2.2 BCL Error Syslog Messages ....................................................................... 86
7.2.3 User-generated Syslog Messages .............................................................. 86
7.3 Rebooting the Barionet .................................................................................................... 86
7.3.1 Rebooting from the Configuration Web Page ............................................. 87
7.3.2 Rebooting using the Hardware Jumper (J9) ............................................... 87
7.4 Resetting to Factory Defaults ........................................................................................... 88
7.4.1 Resetting Using the Configuration Web Page ............................................ 88
7.4.2 Resetting Using the Reset Jumper (Barionet 50 Only) ............................... 88
7.4.3 Resetting Using a Serial Cable and Terminal Program (Barionet 100 Only)89
7.5 The Serial Rescue Procedure ........................................................................................... 90
7.5.1 Null Modem Cable Wiring ........................................................................... 90
7.5.2 Identifying the Serial Port ............................................................................ 91