Skip to content

bjtman/hub_bring_up

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

These steps are the essential steps to get a beagle bone talking with a node using the bring up script node_comm_test.py. This script is intended to validate the wiring of the cape by sending and receiving a RS485 message to and from a connected node.

  1. We first need to prepare a new sdcard. We do this by burning an image onto the sd card. Use the application named Etcher.io to create a new sd card. Currently using this image: https://debian.beagleboard.org/images/bone-debian-9.2-iot-armhf-2017-10-10-4gb.img.xz

Etcher can be found here: https://etcher.io/

  1. Insert the new burned SD Card into a new Beagle Bone Black Wireless and connect the BBBW to your computer via USB cable

  2. If the image was burned correctly, you will see a drive names BEAGLEBONE appear on your desktop.

  3. SSH VIA a terminal and type the following, the '7' in the IP address may be a 6 depending on your machine. Please check beagle bone documentation for that:

ssh debian@192.168.7.2 debian@beaglebone:~$ sudo su

default password is: temppwd

  1. Set up internet access so we can update and download code and necessary libraries and patches (skip if you have already done so) Match the wifi name with that of your network:

Setup Wifi Connection: To Set Wifi sudo connmanctl

connmanctl> enable wifi

connmanctl> scan wifi connmanctl> services ..... Highway 1 wifi_..... ..... connmanctl> agent on

connmanctl> connect wifi_....

Passphrase?

connmanctl> quit

To check IP address

sudo ifconfig -a

  1. Enable UART 1 with these commands:

sudo apt-get update ; sudo apt-get install git-core

git clone https://github.com/beagleboard/bb.org-overlays cd ./bb.org-overlays

./dtc-overlay.sh ./install.sh

  1. Edit /boot/uEnv.txt and add these lines:

##Example v4.1.x #cape_disable=bone_capemgr.disable_partno=

cape_enable=bone_capemgr.enable_partno=BB-UART1, BB-UART2

###Overide capes with eeprom

uboot_overlay_addr0=/lib/firmware/BB-UART1-00A0.dtbo

  1. reboot using:

sudo reboot

  1. download the bringup test script from github:

git clone https://github.com/bjtman/hub_bring_up

  1. install python serial library:

sudo pip install pyserial

  1. install adafruit libraries for python

sudo apt-get update

sudo apt-get install build-essential python-dev python-setuptools python-pip python-smbus -y

  1. From here we can validate the hub node connection. After plugging in the RJ 45 communication cable from hub to node, the node should be powered correctly. This can be validated by watching its three led's blink in succession. Next, run the node_comm_test.py script to send a message thats requests the node state. if successful, the hub should receive a data payload back, which is printed to the terminal. After this the node should take another reading, which is indicated by the LED's blinking in succession again.

About

Directions and Scripts to bring up a new Hub

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages