27.2.2015
The board 4x232 and Beaglebone can be used everywhere you need to collect data from one or more (up to four) buses RS232 or RS485 (external convertor is needed).
Debian package can be installed to the Beaglebone's operatig system (Debian Linux, armhf architecture) for simple use of the 4x232 board. The package contains:
For easy installation and upgrades add a line to the /etc/apt/sources.list file:
deb [arch=armhf] http://debian.hobrasoft.cz hobrasoft non-free
Then install the package:
apt-get update apt-get install hobrasoft-4x232
Serial port are labeled with a letter on the board. Special files in /dev directory have names from /dev/ttyA to /dev/ttyD. You can use these names or you can use names usual in BeagleBone (/dev/ttyO1):
Beaglebone | 4x232 | PCB | Signals |
---|---|---|---|
/dev/ttyO1 | /dev/ttyA | RS232-A | RXD/TXD |
/dev/ttyO2 | /dev/ttyB | RS232-B | RXD/TXD |
/dev/ttyO5 | /dev/ttyC | RS232-C | RXD/TXD, RTS/CTS |
/dev/ttyO4 | /dev/ttyD | RS232-D | RXD/TXD, RTS/CTS |
Board 4x232 cannot be used with internal graphics card at the same time. If you want to use the 4x232 board then the internal graphics card must be deactivated and the needed pin of CPU must be released. When the debian package is installed, the graphics card should be deactivated automatically. If you connect your 4x232 board and the board could not be found, please check the /boot/uboot/uEnv.txt file. There must be the line in that file:
optargs=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN
If you want to use your internal graphics card again, comment the line out.
Beaglebone can be expanded with four different boards. Every board must have unique address. The address of the 4x232 board can be set with EEADDR switch:
Address | A0 | A1 | |
---|---|---|---|
57 | Default | ||
56 | - | ||
55 | - | ||
54 | - | - |
The EEPROM is write protected. If you want to overwrite the memory, connect pins 1 and 2 on the EEWP switch. Please, note, that there is no reason to overwrite the memory since the required content is already written in the memory.
Custom board are not detected automatically. If you want to have the board available automatically, add the board identification to /etc/default/capemgr file:
# Options to pass to capemgr CAPE=HOBRASOFT-4x232
Then reboot your Beaglebone and try if the board was found:
# dmesg | grep 4x232 [ 27.448969] bone-capemgr bone_capemgr.9: part_number 'HOBRASOFT-4x232', version 'N/A' [ 27.449082] bone-capemgr bone_capemgr.9: slot #7: 'Override Board Name,00A0,Override Manuf,HOBRASOFT-4x232' [ 27.449182] bone-capemgr bone_capemgr.9: slot #7: Requesting part number/version based 'HOBRASOFT-4x232-00A0.dtbo [ 27.449199] bone-capemgr bone_capemgr.9: slot #7: Requesting firmware 'HOBRASOFT-4x232-00A0.dtbo' for board-name 'Override Board Name', version '00A0' [ 27.470582] bone-capemgr bone_capemgr.9: slot #7: dtbo 'HOBRASOFT-4x232-00A0.dtbo' loaded; converting to live tree
hobrasoft-4x232.deb -
instalation package for 4x232 board for Debian Linux system
HOBRASOFT-4x232-00A0.dts - firmware source for board 4x232, GPL License
HTTP server pro C++ a Qt - single threaded event driven ebedded http server, LGPL License
Fotobot - data collection server for photovoltaic plats, GPL License
FotobotHW 4x232 - board 4x232, Beaglebone, box and installed Fotobot software