element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • Product Groups
  • Store
    Store
    • Visit Your Store
    • Choose Another Store
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
Personal Blogs
  • Members
  • More
Personal Blogs
Andy Clark's Blog Dragonboard 410c Installing software
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Workshopshed
  • Date Created: 9 May 2016 1:41 PM Date Created
  • Views 646 views
  • Likes 4 likes
  • Comments 6 comments
  • dragonboard 410c
Related
Recommended

Dragonboard 410c Installing software

Workshopshed
Workshopshed
9 May 2016

Following on from Getting started with Dragonboard 410c

For my project to work, I need the following:

 

  • Internet connectivity
  • Webcam
  • Python
  • OpenCV
  • GPIO

 

I decided to tackle the software elements first as those were the areas I was least familiar with.

 

Trouble with Wifi

Now that I had a working Linux install my next step was to get the Wifi connected. That was very straight forward, or so I thought. The Linaro/Debian desktop provided a status bar widget where you could select the Wifi and enter pass code. I did that an it connected just fine. However, shortly after it dropped out reporting that it was disconnected. I moved the board slightly and it reconnected.

I tried a range of different locations and even turned off the Rii keyboard incase that was interfering with it. Nothing improved the situation. However, I did have a USB to Ethernet dongle from work which I plugged in and connected up. That was detected automatically I was now on the net reliably. If I have time I'll investigate the Wifi further but for my purposes the Ethernet is just fine.

 

I installed Bonjour on my desktop and was able to connect to the Dragonboard by name using SSH without any issues.

image

Camera

I was expecting the camera to cause me problems as it was an old one from my Dad's junk box.

 

I plugged it in and ran lsusb, it correctly detected it as a Logitech QuickCam Express.

imageimage

To test the camera I installed "streamer", and captured a test picture of a cat. I've yet to play with the settings on streamer so this is just a low colour version.

image

Python

 

I wanted to use Python to control my project as it is quick and easy to prototype code like this.  I also wanted to communicate with the internet for the purpose of notify the user, so I installed Pycurl too.

To install Pycurl, I need to install PIP (the python package manager), so I used the get-pip.py script to do that. I had to install a few pre-requisites too.

 

sudo apt-get update
sudo apt-get install libcurl4-openssl-dev python-dev
pip install pycurl

 

To test PyCurl was working, I downloaded a simple web page.

 

from StringIO import StringIO
import pycurl
import signal,sys

def call_api(url):
    r = StringIO()
    c = pycurl.Curl()
    c.setopt(c.URL, url)
    c.setopt(c.CONNECTTIMEOUT, 10)
    c.setopt(c.TIMEOUT, 60)
    c.setopt(c.WRITEFUNCTION, r.write)
    c.perform()
    c.close()
    return r.getvalue()

def main():
    r = call_api("http://csb.stanford.edu/class/public/pages/sykes_webdesign/05_simple.html")
    print r

# Handle exit and kill from OS
def set_exit_handler(func):
    signal.signal(signal.SIGTERM, func)
def on_exit(sig, func=None):
    print "exit handler triggered"
    sys.exit(1)


# Run program
if __name__ == '__main__':
     set_exit_handler(on_exit)
     sys.exit(main())

 

OpenCV

 

After trying to compile software on the Arduino Yún last year, I expected that OpenCV was going to be an issue. However, I followed the instructions to install any dependencies, and configured the make file. That all went smoothing. The compile took a couple of hours, I was not surprised as OpenCV is quite sophisticated.

image

It compiled successfully, but I've yet to test it as it was quite late when it finished.

 

Next up GPIO, there's a few different libraries for this but Intel's MRAA seems to have the most potential for what I'm trying to achieve.

 

Reference

 

Framegrabbing Applications

https://pip.pypa.io/en/stable/installing/

Installation in Linux — OpenCV 2.4.13.0 documentation

  • Sign in to reply

Top Comments

  • Workshopshed
    Workshopshed over 6 years ago +2
    The success of a good board is "infrastructure" behind it. In this case there is 96Boards providing support forums for the hardware and software, Linaro providing the O/S distribution and Qualcom providing…
  • tonyboubady
    tonyboubady over 6 years ago +1
    Nice board though...
  • DAB
    DAB over 6 years ago +1
    Nice update Andy. I find these detailed walk through posts useful in assessing the usability of these new boards. Thanks DAB
  • Workshopshed
    Workshopshed over 6 years ago in reply to clem57

    I went for the stick an Ethernet dongle in the back workaround.

    The IP addresses are allocated by DHCP so I can't see why there would have been a clash.

    My issue was not that the board could not be reached but that it kept reporting that it had been disconnected from the WiFi. Perhaps related?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • clem57
    clem57 over 6 years ago in reply to Workshopshed

    Workshopshed

         This appears if your dragon board and another computer has same IP address. The problem is dragon board does not properly respond to ARP request allowing this to occur. SSH and PING workarounds - 96Boards

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Workshopshed
    Workshopshed over 6 years ago

    There's a comment about the Wifi in the FAQ, I've not had chance to determine if this was the problem with my board.

     

    Dragonboard FAQ - 96Boards

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 6 years ago

    Nice update Andy.

     

    I find these detailed walk through posts useful in assessing the usability of these new boards.

     

    Thanks

    DAB

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Workshopshed
    Workshopshed over 6 years ago

    The success of a good board is "infrastructure" behind it. In this case there is 96Boards providing support forums for the hardware and software, Linaro providing the O/S distribution and Qualcom providing additional tutorials and hardware details.

     

    So far I'd agree it's a great board.

     

    Bit of a shame about it not working well with my Wifi. I will chase that up if I have time but I've got a workaround in the form of the Ethernet dongle which will allow me to progress the project.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2023 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • Facebook
  • Twitter
  • linkedin
  • YouTube