Difference between revisions of "Hobrasoft:4x232"

From eLinux.org
Jump to: navigation, search
(Signal usage)
(Getting started)
Line 77: Line 77:
 
# Install software support
 
# Install software support
  
=== Software installation - easy way ===
+
=== Software installation ===
 
Debian package can be installed to the Beaglebone's operating system (Debian Linux, armhf architecture) for simple use of the 4x232 board. The package contains:
 
Debian package can be installed to the Beaglebone's operating system (Debian Linux, armhf architecture) for simple use of the 4x232 board. The package contains:
 
* systemd script for real time clock
 
* systemd script for real time clock
Line 94: Line 94:
 
apt-get update
 
apt-get update
 
apt-get install hobrasoft-4x232
 
apt-get install hobrasoft-4x232
</pre>
 
 
=== Software installation: serial ports - detailed description ===
 
We strongly recommend you to use the debian package.
 
 
Open the /boot/uboott/uEnv.txt file in text editor and add or uncomment the following line:
 
 
<pre>
 
##Disable HDMI
 
optargs=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN
 
</pre>
 
 
Download and compile the .dts file:
 
 
<pre>
 
dtc -O dtb -o /lib/firmware/HOBRASOFT-4x232-00A0.dtbo -b 0 -@ HOBRASOFT-4x232-00A0.dts
 
</pre>
 
 
Open the /etc/default/capemgr file in text editor and add the following line:
 
 
<pre>
 
CAPE=HOBRASOFT-4x232
 
</pre>
 
 
Reboot the BeagleBone Black. Now the HDMI should be disabled and the serial ports /dev/ttyO? should be visible in /dev directory.
 
 
=== Software installation: real time clock - detailed description ===
 
We strongly recommend you to use the debian package.
 
 
Create executable script in /usr/share/rtc-mcp7941x/clock_init.sh:
 
 
<pre>
 
#!/bin/sh
 
 
sleep 10
 
echo mcp7941x 0x6f > /sys/class/i2c-adapter/i2c-1/new_device
 
hwclock -s -u -f /dev/rtc1
 
hwclock -wu -f /dev/rtc0
 
</pre>
 
 
Add this script to your startup environment. Debian in BeagleBone Black uses systemd. Create the service file /lib/systemd/system/rtc-mcp7941x.service
 
 
<pre>
 
[Unit]
 
Description=MCP7941x RTC Service
 
 
[Service]
 
Type=simple
 
WorkingDirectory=/usr/share/rtc_mcp7941x
 
ExecStart=/bin/sh clock_init.sh
 
SyslogIdentifier=rtc_mcp7941x
 
 
[Install]
 
WantedBy=multi-user.target
 
</pre>
 
 
Enable and start the service:
 
 
<pre>
 
systemctl enable rtc-mcp7941x.service
 
systemctl start  rtc-mcp7941x.service
 
 
</pre>
 
</pre>
  

Revision as of 07:40, 25 March 2015

Descriptions

4x232 Cape

The Hobrasoft 4x232 Cape provides four RS232 serial ports and real time clock with batery backup. Board is powered from 5V power supply, protected with transil and fuse. Board colides with built-in graphics card so it is impossible to use the 4x232 and HDMI output at the same time.

Specifications

Followings are some specifications of the 4x232 Cape:

Electrical specifications

Power 5V via own connector
Indicators Power LED
Switches EEPROM write protect switch
EEPROM address switch
Connectors Two 46-position male headers
One 5V power supply connector
Four RS232 9pin CANON connectors

Serial ports specifications

BeagleBone 4x232 PCB Signals
/dev/ttyO1 /dev/ttyA RS232-A RXD/TXD
/dev/ttyO2 /dev/ttyB RS232-B RXD/TXD
/dev/ttyO4 /dev/ttyC RS232-C RXD/TXD, RTS/CTS
/dev/ttyO5 /dev/ttyD RS232-D RXD/TXD, RTS/CTS

Mechanical specifications

Size 90 x 100 mm

Software Support

Getting started

Required setup

  • BeagleBone Black
  • 4x232 board
  • 5V power supply - use included connector, be carefull about the polarity

Following the instructions below to start using your 4x232 Cape:

  1. Mount the BeagleBone Black to the connectors of the 4x232 Cape. The network connector should be oriented to the right side of the 4x232 board (battery is mounted in lower left corner).
  2. Mount included connector to your 5V DC power supply, for proper polarity check label on the board.
  3. Plug in a 5V DC power supply to the DC connector on the 4x232 board
  4. Install software support

Software installation

Debian package can be installed to the Beaglebone's operating system (Debian Linux, armhf architecture) for simple use of the 4x232 board. The package contains:

  • systemd script for real time clock
  • firmware for 4x232 board (file dtbo)
  • udev rules to create special devices /dev/ttyA to /dev/ttyD (corresponds with labels on the board)

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 from the command line:

apt-get update
apt-get install hobrasoft-4x232

Signal usage

The 4x232 Cape uses 12 signals including:

  • UART4_CTSN (P8.35)
  • UART4_RTSN (P8.33)
  • UART5_CTSN (P8.31)
  • UART5_RTSN (P8.32)
  • UART5_TXD (P8.37)
  • UART5_RXD (P8.38)
  • UART1_RXD (P9.26)
  • UART1_TXD (P9.24)
  • UART2_RXD (P9.22)
  • UART2_TXD (P9.21)
  • UART4_RXD (P9.11)
  • UART4_TXD (P9.13)
  • VDD_3V3EXP
  • SYS_5V
  • DGND

EEPROM

EEPROM Suport Yes
Board Name BeagleBone LCD3 Cape
Version 00A2
Manufacturer BeagleBoardToys
Part Number BB-BONE-LCD3-01
Pins Used 45