Giter Site home page Giter Site logo

hub_bring_up's Introduction

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 [email protected] 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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.