First setup device static IP address in browser. Make sure that the serial transfer protocol is set to RAW!
Install cyclades serial client:
$ sudo apt-get install cyclades-serial-client
/etc/cyclades-devices by adding followind lines (for 4 port device)
/dev/ctty01:Brainboxes:22.214.171.124:1:socket:-p 9000 -d 0 /dev/ctty02:Brainboxes:126.96.36.199:2:socket:-p 9000 -d 0 /dev/ctty03:Brainboxes:188.8.131.52:3:socket:-p 9000 -d 0 /dev/ctty04:Brainboxes:184.108.40.206:4:socket:-p 9000 -d 0
/usr/sbin/cyclades-serial-client replace all occurances (there should be 4) of
to start using ports write
$ sudo cyclades-serial-client start
to stop write
$ sudo cyclades-serial-client stop
You also need to provide access privileges to the port (adding user to dialout does not work right now, see below for potentially better solutions):
$ sudo chmod ga+rw /dev/ctty*
To automate the port startup procedure, add the following lines to your
/etc/rc.local file (before
cyclades-serial-client start chmod ga+rw /dev/ctty*
Don't forget to make
$ sudo chmod +x /etc/rc.local
When ports are started they cannot be used from other computer.
If the converter gets disconnected and then reconnected, the client needs to be restarted:
$ sudo cyclades-serial-client restart
(appropriate file permissions are retained).
The clean way of setting appropriate user permissions for the serial ports would be to create a file in
brainboxes-serial-ports.rules (the name of the file is actually irelevant), containing only the following code:
Unfortunately, this does not seem to be working right for some reason :/
Further info on setting appropriate permissions automatically:
Libpopt command line argument parsing library:
$ sudo apt-get install libpopt-dev
Download the driver from the PEAK-System LINUX Website and unpack it to the directory of your choice. Go to the directory and invoke make.
$ cd peak-linux-driver-7.13 $ make NET=NO
Plug the PCAN card into your ExpressCard34 slot and install the driver:
$ sudo make install $ sudo modprobe pcan
If the PCAN card is recognized by your system at boot time (i.e. the red LED comes on when the card is inserted before your system boots), but not when it is hotplugged, check if the Hotplug driver is loaded on your system:
$ lsmod | grep acpiphp
If the previous command does not return anything, add the following line
to the end of you /etc/modules file and reboot.