首页 > 学院 > 开发设计 > 正文

beaglebone-asterisk应用笔记

2019-11-10 17:39:23
字体:
来源:转载
供稿:网友

前言

问什么是用这个系统呢?之前说的要做一个Sip系统服务器,用来测试IP Recorder应用。之前使用Raspberry PI已经可以顺利运行了。接下来用BeagleBone-Black来实现一下这个功能。

准备

一块BeagleBone-Black板子;一块4G的Micro-SD卡;有线网络或USB网卡

安装系统

下载beaglebone-asterisk镜像文件

由于我使用的旧版本的BBB,所以我尽量下载低版本的镜像文件。我下载的是 [raspbx-bbb-28-05-2013.img.xz]http://beaglebone-asterisk.raspbx.org/download/raspbx-bbb-28-05-2013.img.xz版本。

解压镜像包

该镜像包可以通过7Zip软件进行解压。该软件可以通过googlebaidu进行搜索下载。

烧录镜像文件的Micro-SD卡

通过Win32DiskImager烧录到Micro-SD卡。

运行

Micro-SD卡插入到BBB的卡槽,给BBB上电,OK了,系统开始运行了。

运行raspbx系统

系统上电后,查找到raspbx的IP地址,在浏览器中输入相应地址,可以看到freePBX的界面。

Configuration details set during install:MySQL root passWord: beagleboneSSH login:user: rootpassword: beagleboneDefault FreePBX login:user: adminpassword: admin

安装USB无线网卡(RTL8188CUS)

安装驱动和工具软件

root@raspbx:/etc/network# lsusbBus 001 Device 002: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN AdapterBus 001 Device 001: ID 1d6b:0002 linux Foundation 2.0 root hubBus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubroot@raspbx:/etc/network# apt-get install wireless-toolsReading package lists... DoneBuilding dependency treeReading state information... Donewireless-tools is already the newest version.0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.root@raspbx:/etc/network# apt-get install wpasupplicantReading package lists... DoneBuilding dependency treeReading state information... Donewpasupplicant is already the newest version.0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.root@raspbx:/etc/network# apt-get install firmware-realtekReading package lists... DoneBuilding dependency treeReading state information... DoneE: Unable to locate package firmware-realtek

配置Wifi文件

http://www.savagehomeautomation.com/PRojects/raspberry-pi-installing-the-edimax-ew-7811un-usb-wifi-adapte.html

root@raspbx:/# cat /etc/network/interfaces# This file describes the network interfaces available on your system# and how to activate them. For more information, see interfaces(5).# The loopback network interfaceauto loiface lo inet loopback# The primary network interfaceauto eth0iface eth0 inet dhcp# Example to keep MAC address between reboots#hwaddress ether DE:AD:BE:EF:CA:FE# WiFi Exampleauto wlan0allow-hotplug wlan0iface wlan0 inet manualwpa-roam /etc/wpa_supplicant/wpa_supplicant.conf# Ethernet/RNDIS gadget (g_ether)# ... or on host side, usbnet and random hwaddriface usb0 inet static address 192.168.7.2 netmask 255.255.255.0 network 192.168.7.0 gateway 192.168.7.1root@raspbx:/# cat /etc/wpa_supplicant/wpa_supplicant.confnetwork={ssid="homej"proto=RSNkey_mgmt=WPA-PSK2pairwise=CCMP_TKIPgroup=CCMP_TKIPpsk="12346789"}

启动wifi配置

root@raspbx:/# ifup wlan0ifup: interface wlan0 already configured

查看wifi连接状态

root@raspbx:/# ifconfigeth0 Link encap:Ethernet HWaddr 90:59:af:50:b0:03 inet addr:192.168.1.131 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::9259:afff:fe50:b003/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1639 errors:0 dropped:0 overruns:0 frame:0 TX packets:788 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:176378 (176.3 KB) TX bytes:240452 (240.4 KB) Interrupt:56lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:194 errors:0 dropped:0 overruns:0 frame:0 TX packets:194 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:17967 (17.9 KB) TX bytes:17967 (17.9 KB)usb0 Link encap:Ethernet HWaddr f2:74:05:9a:4e:7b inet addr:192.168.7.2 Bcast:192.168.7.3 Mask:255.255.255.252 inet6 addr: fe80::f074:5ff:fe9a:4e7b/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:673 errors:0 dropped:0 overruns:0 frame:0 TX packets:81 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:71156 (71.1 KB) TX bytes:17230 (17.2 KB)wlan0 Link encap:Ethernet HWaddr e8:4e:06:0e:13:b6 inet addr:192.168.1.133 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::ea4e:6ff:fe0e:13b6/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:389 errors:0 dropped:0 overruns:0 frame:0 TX packets:74 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:41980 (41.9 KB) TX bytes:17381 (17.3 KB)

OK可以看到连接上去了,192.168.1.133。

参考

对于RasPBX的一些应用,可以参考一下这篇文档。 RasPBX/FreePBX/Asterisk简单应用


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表