background image

_______________________________________________________________________________________

© Barix AG 7/2018, all rights reserved. All information is subject to change without notice. All mentioned trademarks belong to their
respective owners and are used for reference only. Barix, Exstreamer and SonicIP are trademarks of Barix AG, Switzerland, and are
registered in certain countries.

Analog Inputs

Analog Inputs: bio501 – bio504
Use the following shell command in order to
read the analog input values:
“cat bio501” -> reads Analog Input 1

Make sure that Pull-Up Resistors on the
Analog Inputs are turned off for reading
analog values

7. Use of Serial Ports from

Scripts or programs

The Serial Ports (RS232 and RS485) are
accessible through the standard OpenWrt
USB device files.

The Device Files can be found in the folder
/dev.

RS232 Interface:

ttyS1

Use the following shell command in order to
write to the Serial Port:

“echo hello world > ttyS1” -> writes to
RS232

Use the following shell command in order to
read from the Serial Port:

“cat ttyS1” -> reads from RS232

8. Mounting a USB Stick

In order to mount a USB stick to the
OpenWRT

File

System,

the

following

packages need to be installed:

-> kmod-usb-storage (Kernel support for
USB Mass Storage devices)

-> kmod-fs-vfat (support of the right file
system, vfat for fat32)

The USB Stick can now be plugged in and
mounted

with

mount

command

as

following:

“mount -t vfat /dev/sda1 /mnt/usb” ->
mounts the sda1 (first USB stick)

Note that “sda1” is eventually replaced by
another interface. Use dmesg in order to
determine the right interface.

Note that the /mnt/usb directory needs to
be created before mounting.

9. Use of Modbus

The Barionet 1000 is supporting Modbus
TCP Protocol in order to be controlled.

Modbus Interface:

TCP Port 502

All IOs as well as a lot of more functions are
accessible

via

Modbus

IO

Registers

according to Appendix 1) IO Mapping.

10. Lua Programming

The Barionet 1000 can easily be custom
programmed in Lua. For more information
about Lua Programming see www.lua.org.

A limited set of Lua Packages are pre-
installed on the Barionet 1000 already.
Most of the common Packages can easily
be installed using OPKG packet installer
(see above).

Lua Programs can be loaded onto the
device using ssh and scp. The Lua program
will

be

started

using

the

following

command:

“lua helloworld.lua” -> starts helloworld.lua

Summary of Contents for Barionet 1000

Page 1: ...__________________________________________________ IP Wi Fi Automation Controller Package contents a Barionet 1000 b 3 Female Terminal Blocks c Sticker with Wi Fi and LAN MAC Address Mounting on a DIN Rail Slide the device upwards onto the DIN rail Push it up and towards the rail until it snaps onto the upper rail edge Before powering the device please read this quick install guide and mind the po...

Page 2: ... 2 common 2 Relay 2 normally open 3 Relay 2 normally closed 4 Relay 1 common 5 Relay 1 normally open 6 Relay 1 normally closed J1 I O and Supply Inputs Pin Description 1 4 Input 1 4 Analog 0 15VDC or Digital 5 8 Input 5 8 Digital 9 Common Inputs Ground 10 13 Output 1 4 Digital Open Collector 0 24VDC 100mA 14 Common Outputs Ground 15 Power In 9 30VDC 16 Power In P1 RS 232 serial port Pin Descriptio...

Page 3: ...le from the Barionet 1000 to an Ethernet network The Barionet 1000 is configured to be a DHCP Client by default Use a Network Scanning Program in order to determine the IP Address according to the given MAC Address 3 Changing Settings via Luci Web Interface Opening the LuCi Interface To use the LuCI web interface please type the IP address of the Device of into your web browser e g 192 168 1 123 T...

Page 4: ...n Use ssh or a similar client for example PuTTY port 22 SSH option and establish a connection as user root to the IP address of the Barionet given DHCP Address if connecting via Ethernet or 192 168 166 1 if connected via Wi Fi The root user has NO password set so make sure you set one 5 Installing OpenWRT Packages OpenWRT Packages can be installed by the standard OpenWRT Lede Package installer by ...

Page 5: ...tick In order to mount a USB stick to the OpenWRT File System the following packages need to be installed kmod usb storage Kernel support for USB Mass Storage devices kmod fs vfat support of the right file system vfat for fat32 The USB Stick can now be plugged in and mounted with mount command as following mount t vfat dev sda1 mnt usb mounts the sda1 first USB stick Note that sda1 is eventually r...

Page 6: ...id Place the Factory Defaults Jumper and wait at least 10s Remove the Factory Defaults Jumper 12 Reset to factory defaults With LuCI Web Interface On the LuCI web interface go to System Backup Flash Firmware Under Backup Restore select Reset to defaults and perform the factory reset At this point the device will reboot and apply default settings At this point the device will reboot and apply defau...

Page 7: ...io201 202 R only 1 bit Digital Input 2 in2 bio202 203 R only 1 bit Digital Input 3 in3 bio203 204 R only 1 bit Digital Input 4 in4 bio204 205 R only 1 bit Digital Input 5 in5 bio205 206 R only 1 bit Digital Input 6 in6 bio206 207 R only 1 bit Digital Input 7 in7 bio207 208 R only 1 bit Digital Input 8 in8 bio208 209 400 R W 1 bit Virtual IO Bits 501 R only 16 bits Analog Input 1 Value analog1 bio5...

Reviews: